1 # Copyright (c) 2011-2015 Ryan Prichard
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:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
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
21 ALL_TARGETS += build/winpty-agent.exe
23 $(eval $(call def_mingw_target,agent,-DWINPTY_AGENT_ASSERT))
26 build/agent/agent/Agent.o \
27 build/agent/agent/AgentCreateDesktop.o \
28 build/agent/agent/ConsoleFont.o \
29 build/agent/agent/ConsoleInput.o \
30 build/agent/agent/ConsoleInputReencoding.o \
31 build/agent/agent/ConsoleLine.o \
32 build/agent/agent/DebugShowInput.o \
33 build/agent/agent/DefaultInputMap.o \
34 build/agent/agent/EventLoop.o \
35 build/agent/agent/InputMap.o \
36 build/agent/agent/LargeConsoleRead.o \
37 build/agent/agent/NamedPipe.o \
38 build/agent/agent/Scraper.o \
39 build/agent/agent/Terminal.o \
40 build/agent/agent/Win32Console.o \
41 build/agent/agent/Win32ConsoleBuffer.o \
42 build/agent/agent/main.o \
43 build/agent/shared/BackgroundDesktop.o \
44 build/agent/shared/Buffer.o \
45 build/agent/shared/DebugClient.o \
46 build/agent/shared/GenRandom.o \
47 build/agent/shared/OwnedHandle.o \
48 build/agent/shared/StringUtil.o \
49 build/agent/shared/WindowsSecurity.o \
50 build/agent/shared/WindowsVersion.o \
51 build/agent/shared/WinptyAssert.o \
52 build/agent/shared/WinptyException.o \
53 build/agent/shared/WinptyVersion.o
55 build/agent/shared/WinptyVersion.o : build/gen/GenVersion.h
57 build/winpty-agent.exe : $(AGENT_OBJECTS)
59 @$(MINGW_CXX) $(MINGW_LDFLAGS) -o $@ $^
61 -include $(AGENT_OBJECTS:.o=.d)