1 | # $Id: $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # kBuild config for building the bits of synergy I need on OS/2.
|
---|
5 | #
|
---|
6 | # Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>
|
---|
7 | #
|
---|
8 |
|
---|
9 | DEPTH = ..
|
---|
10 | include $(PATH_KBUILD)/header.kmk
|
---|
11 |
|
---|
12 | #
|
---|
13 | # Just use defaults here instead of templates (lazy).
|
---|
14 | #
|
---|
15 | TOOL = GXX3
|
---|
16 | TOOL.os2 = GXX3OMF
|
---|
17 | #TOOL.nt = MINGW32
|
---|
18 | INCS = \
|
---|
19 | lib/common \
|
---|
20 | lib/arch \
|
---|
21 | lib/base \
|
---|
22 | lib/mt \
|
---|
23 | lib/io \
|
---|
24 | lib/net \
|
---|
25 | lib/synergy \
|
---|
26 | lib/platform \
|
---|
27 | lib/client \
|
---|
28 | lib/server \
|
---|
29 |
|
---|
30 | DEFS.nt = _WIN32
|
---|
31 |
|
---|
32 | #
|
---|
33 | # The libs
|
---|
34 | #
|
---|
35 |
|
---|
36 | LIBRARIES = \
|
---|
37 | common \
|
---|
38 | arch \
|
---|
39 | base \
|
---|
40 | io \
|
---|
41 | net \
|
---|
42 | mt \
|
---|
43 | synergy \
|
---|
44 | client \
|
---|
45 | server \
|
---|
46 | platform \
|
---|
47 |
|
---|
48 | common_SOURCES = lib/common/Version.cpp
|
---|
49 |
|
---|
50 | arch_SOURCES = \
|
---|
51 | lib/arch/CArch.cpp \
|
---|
52 | lib/arch/CArchDaemonNone.cpp \
|
---|
53 | lib/arch/XArch.cpp
|
---|
54 | arch_SOURCES.os2 = \
|
---|
55 | lib/arch/CArchConsoleUnix.cpp \
|
---|
56 | lib/arch/CArchFileUnix.cpp \
|
---|
57 | lib/arch/CArchLogUnix.cpp \
|
---|
58 | lib/arch/CArchNetworkBSD.cpp \
|
---|
59 | lib/arch/CArchSleepUnix.cpp \
|
---|
60 | lib/arch/CArchStringUnix.cpp \
|
---|
61 | lib/arch/CArchSystemUnix.cpp \
|
---|
62 | lib/arch/CArchTimeUnix.cpp \
|
---|
63 | lib/arch/XArchUnix.cpp \
|
---|
64 | lib/arch/CArchMultithreadOS2.cpp \
|
---|
65 | lib/arch/CArchTaskBarOS2.cpp
|
---|
66 | arch_SOURCES.nt = \
|
---|
67 | lib/arch/CArchConsoleWindows.cpp \
|
---|
68 | lib/arch/CArchDaemonWindows.cpp \
|
---|
69 | lib/arch/CArchFileWindows.cpp \
|
---|
70 | lib/arch/CArchLogWindows.cpp \
|
---|
71 | lib/arch/CArchMiscWindows.cpp \
|
---|
72 | lib/arch/CArchMultithreadWindows.cpp \
|
---|
73 | lib/arch/CArchNetworkWinsock.cpp \
|
---|
74 | lib/arch/CArchSleepWindows.cpp \
|
---|
75 | lib/arch/CArchStringWindows.cpp \
|
---|
76 | lib/arch/CArchSystemWindows.cpp \
|
---|
77 | lib/arch/CArchTaskBarWindows.cpp \
|
---|
78 | lib/arch/CArchTimeWindows.cpp \
|
---|
79 | lib/arch/XArchWindows.cpp
|
---|
80 |
|
---|
81 | base_SOURCES = \
|
---|
82 | lib/base/CEvent.cpp \
|
---|
83 | lib/base/CEventQueue.cpp \
|
---|
84 | lib/base/CFunctionEventJob.cpp \
|
---|
85 | lib/base/CFunctionJob.cpp \
|
---|
86 | lib/base/CLog.cpp \
|
---|
87 | lib/base/CSimpleEventQueueBuffer.cpp \
|
---|
88 | lib/base/CStopwatch.cpp \
|
---|
89 | lib/base/CStringUtil.cpp \
|
---|
90 | lib/base/CUnicode.cpp \
|
---|
91 | lib/base/IEventQueue.cpp \
|
---|
92 | lib/base/LogOutputters.cpp \
|
---|
93 | lib/base/XBase.cpp
|
---|
94 |
|
---|
95 | mt_SOURCES = \
|
---|
96 | lib/mt/CCondVar.cpp \
|
---|
97 | lib/mt/CLock.cpp \
|
---|
98 | lib/mt/CMutex.cpp \
|
---|
99 | lib/mt/CThread.cpp \
|
---|
100 | lib/mt/XMT.cpp
|
---|
101 |
|
---|
102 |
|
---|
103 | io_SOURCES = \
|
---|
104 | lib/io/CStreamBuffer.cpp \
|
---|
105 | lib/io/CStreamFilter.cpp \
|
---|
106 | lib/io/IStream.cpp \
|
---|
107 | lib/io/XIO.cpp
|
---|
108 |
|
---|
109 | net_SOURCES = \
|
---|
110 | lib/net/CNetworkAddress.cpp \
|
---|
111 | lib/net/CSocketMultiplexer.cpp \
|
---|
112 | lib/net/CTCPListenSocket.cpp \
|
---|
113 | lib/net/CTCPSocket.cpp \
|
---|
114 | lib/net/CTCPSocketFactory.cpp \
|
---|
115 | lib/net/IDataSocket.cpp \
|
---|
116 | lib/net/IListenSocket.cpp \
|
---|
117 | lib/net/ISocket.cpp \
|
---|
118 | lib/net/XSocket.cpp
|
---|
119 |
|
---|
120 | synergy_SOURCES = \
|
---|
121 | lib/synergy/CClipboard.cpp \
|
---|
122 | lib/synergy/CKeyMap.cpp \
|
---|
123 | lib/synergy/CKeyState.cpp \
|
---|
124 | lib/synergy/CPacketStreamFilter.cpp \
|
---|
125 | lib/synergy/CPlatformScreen.cpp \
|
---|
126 | lib/synergy/CProtocolUtil.cpp \
|
---|
127 | lib/synergy/CScreen.cpp \
|
---|
128 | lib/synergy/IClipboard.cpp \
|
---|
129 | lib/synergy/IKeyState.cpp \
|
---|
130 | lib/synergy/IPrimaryScreen.cpp \
|
---|
131 | lib/synergy/IScreen.cpp \
|
---|
132 | lib/synergy/KeyTypes.cpp \
|
---|
133 | lib/synergy/ProtocolTypes.cpp \
|
---|
134 | lib/synergy/XScreen.cpp \
|
---|
135 | lib/synergy/XSynergy.cpp
|
---|
136 |
|
---|
137 | client_SOURCES = \
|
---|
138 | lib/client/CClient.cpp \
|
---|
139 | lib/client/CServerProxy.cpp
|
---|
140 |
|
---|
141 | server_SOURCES = \
|
---|
142 | lib/server/CBaseClientProxy.cpp \
|
---|
143 | lib/server/CClientListener.cpp \
|
---|
144 | lib/server/CClientProxy.cpp \
|
---|
145 | lib/server/CClientProxy1_0.cpp \
|
---|
146 | lib/server/CClientProxy1_1.cpp \
|
---|
147 | lib/server/CClientProxy1_2.cpp \
|
---|
148 | lib/server/CClientProxy1_3.cpp \
|
---|
149 | lib/server/CClientProxyUnknown.cpp \
|
---|
150 | lib/server/CConfig.cpp \
|
---|
151 | lib/server/CInputFilter.cpp \
|
---|
152 | lib/server/CPrimaryClient.cpp \
|
---|
153 | lib/server/CServer.cpp
|
---|
154 |
|
---|
155 |
|
---|
156 | platform_SOURCES =
|
---|
157 | platform_SOURCES.os2 = \
|
---|
158 | lib/platform/CPMClipboard.cpp \
|
---|
159 | lib/platform/CPMClipboardAnyTextConverter.cpp \
|
---|
160 | lib/platform/CPMClipboardBitmapConverter.cpp \
|
---|
161 | lib/platform/CPMClipboardHTMLConverter.cpp \
|
---|
162 | lib/platform/CPMClipboardTextConverter.cpp \
|
---|
163 | lib/platform/CPMEventQueueBuffer.cpp \
|
---|
164 | lib/platform/CPMScreenSaver.cpp \
|
---|
165 | lib/platform/CPMScreen.cpp \
|
---|
166 | lib/platform/CPMKeyState.cpp \
|
---|
167 | lib/platform/CPMUtil.cpp
|
---|
168 | # todo:
|
---|
169 | platform_SOURCES.nt = \
|
---|
170 | lib/platform/CMSWindowsClipboard.cpp \
|
---|
171 | lib/platform/CMSWindowsClipboardAnyTextConverter.cpp \
|
---|
172 | lib/platform/CMSWindowsClipboardBitmapConverter.cpp \
|
---|
173 | lib/platform/CMSWindowsClipboardHTMLConverter.cpp \
|
---|
174 | lib/platform/CMSWindowsClipboardTextConverter.cpp \
|
---|
175 | lib/platform/CMSWindowsClipboardUTF16Converter.cpp \
|
---|
176 | lib/platform/CMSWindowsDesks.cpp \
|
---|
177 | lib/platform/CMSWindowsEventQueueBuffer.cpp \
|
---|
178 | lib/platform/CMSWindowsKeyState.cpp \
|
---|
179 | lib/platform/CMSWindowsScreen.cpp \
|
---|
180 | lib/platform/CMSWindowsScreenSaver.cpp \
|
---|
181 | lib/platform/CMSWindowsUtil.cpp
|
---|
182 |
|
---|
183 |
|
---|
184 | #
|
---|
185 | # The programs
|
---|
186 | #
|
---|
187 |
|
---|
188 | PROGRAMS = \
|
---|
189 | synergyc \
|
---|
190 | synergys
|
---|
191 |
|
---|
192 | synergyc_SOURCES = \
|
---|
193 | cmd/synergyc/CClientTaskBarReceiver.cpp \
|
---|
194 | cmd/synergyc/synergyc.cpp
|
---|
195 | synergyc_SOURCES.os2 = \
|
---|
196 | cmd/synergyc/CPMClientTaskBarReceiver.cpp
|
---|
197 | synergyc_SOURCES.nt = \
|
---|
198 | cmd/synergyc/CMSWindowsClientTaskBarReceiver.cpp
|
---|
199 |
|
---|
200 | synergyc_LIBS = \
|
---|
201 | $(TARGET_client) \
|
---|
202 | $(TARGET_platform) \
|
---|
203 | $(TARGET_synergy) \
|
---|
204 | $(TARGET_net) \
|
---|
205 | $(TARGET_base) \
|
---|
206 | $(TARGET_io) \
|
---|
207 | $(TARGET_mt) \
|
---|
208 | $(TARGET_arch) \
|
---|
209 | $(TARGET_common) \
|
---|
210 | $(synergyc_LIBS.$(BUILD_TARGET))
|
---|
211 | synergyc_LIBS.nt = kernel32 user32 gdi32
|
---|
212 |
|
---|
213 |
|
---|
214 | synergys_SOURCES = \
|
---|
215 | cmd/synergys/CServerTaskBarReceiver.cpp \
|
---|
216 | cmd/synergys/synergys.cpp
|
---|
217 | synergys_SOURCES.os2 = \
|
---|
218 | cmd/synergys/CPMServerTaskBarReceiver.cpp
|
---|
219 | synergys_SOURCES.nt = \
|
---|
220 | cmd/synergys/CMSWindowsServerTaskBarReceiver.cpp
|
---|
221 |
|
---|
222 |
|
---|
223 | synergys_LIBS = \
|
---|
224 | $(TARGET_server) \
|
---|
225 | $(TARGET_platform) \
|
---|
226 | $(TARGET_synergy) \
|
---|
227 | $(TARGET_net) \
|
---|
228 | $(TARGET_base) \
|
---|
229 | $(TARGET_io) \
|
---|
230 | $(TARGET_mt) \
|
---|
231 | $(TARGET_arch) \
|
---|
232 | $(TARGET_common) \
|
---|
233 | $(synergys_LIBS.$(BUILD_TARGET))
|
---|
234 | synergys_LIBS.nt = kernel32 user32 gdi32
|
---|
235 |
|
---|
236 |
|
---|
237 | #
|
---|
238 | # The hook DLLs.
|
---|
239 | #
|
---|
240 | DLLS = synrgyhk
|
---|
241 |
|
---|
242 | synrgyhk_DEFS = SYNRGYHK_EXPORTS
|
---|
243 | synrgyhk_ASTOOL.os2 = NASM
|
---|
244 | synrgyhk_ASFLAGS.os2 = -f obj
|
---|
245 | synrgyhk_CXXFLAGS.os2 = -fno-exceptions
|
---|
246 | synrgyhk_LDFLAGS.os2 = -nostdlib -los2 -v -lend
|
---|
247 | synrgyhk_SOURCES.nt = \
|
---|
248 | lib/platform/CSynergyHook.cpp
|
---|
249 | synrgyhk_SOURCES.os2 = \
|
---|
250 | lib/platform/CPMSynergyHook.cpp \
|
---|
251 | lib/platform/CPMSynergyHookData.asm \
|
---|
252 | lib/platform/CPMSynergyHook.def
|
---|
253 |
|
---|
254 |
|
---|
255 | #
|
---|
256 | # A debugging testcase.
|
---|
257 | #
|
---|
258 | PROGRAMS += syntest
|
---|
259 | syntest_SOURCES = syntest.cpp
|
---|
260 | syntest_LIBS = \
|
---|
261 | $(TARGET_platform) \
|
---|
262 | $(TARGET_synergy) \
|
---|
263 | $(TARGET_net) \
|
---|
264 | $(TARGET_base) \
|
---|
265 | $(TARGET_io) \
|
---|
266 | $(TARGET_mt) \
|
---|
267 | $(TARGET_arch) \
|
---|
268 | $(TARGET_common)
|
---|
269 |
|
---|
270 |
|
---|
271 | include $(PATH_KBUILD)/footer.kmk
|
---|