installed pty
[VSoRC/.git] / node_modules / node-pty / deps / winpty / src / unix-adapter / subdir.mk
1 # Copyright (c) 2011-2015 Ryan Prichard
2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to
5 # deal in the Software without restriction, including without limitation the
6 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 # sell copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9 #
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12 #
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 # IN THE SOFTWARE.
20
21 ALL_TARGETS += build/$(UNIX_ADAPTER_EXE)
22
23 $(eval $(call def_unix_target,unix-adapter,))
24
25 UNIX_ADAPTER_OBJECTS = \
26         build/unix-adapter/unix-adapter/InputHandler.o \
27         build/unix-adapter/unix-adapter/OutputHandler.o \
28         build/unix-adapter/unix-adapter/Util.o \
29         build/unix-adapter/unix-adapter/WakeupFd.o \
30         build/unix-adapter/unix-adapter/main.o \
31         build/unix-adapter/shared/DebugClient.o \
32         build/unix-adapter/shared/WinptyAssert.o \
33         build/unix-adapter/shared/WinptyVersion.o
34
35 build/unix-adapter/shared/WinptyVersion.o : build/gen/GenVersion.h
36
37 build/$(UNIX_ADAPTER_EXE) : $(UNIX_ADAPTER_OBJECTS) build/winpty.dll
38         $(info Linking $@)
39         @$(UNIX_CXX) $(UNIX_LDFLAGS) -o $@ $^
40
41 -include $(UNIX_ADAPTER_OBJECTS:.o=.d)