]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/makefile.vc
use install_name_tool so that samples use uninstalled shared libs on OSX
[wxWidgets.git] / samples / ipc / makefile.vc
CommitLineData
0706fb23
VS
1# =========================================================================
2# This makefile was generated by
f509d00d 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
0706fb23
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
7921cf2b 6
fd9f42b6 7!include <../../build/msw/config.vc>
0706fb23
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
d179e30b
VS
15CLIENT_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
16 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
17 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
076f10e0
VS
18 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
19 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
4e209a20
VS
20 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
21 $(CXXFLAGS)
d179e30b
VS
22CLIENT_OBJECTS = \
23 $(OBJS)\client_sample.res \
24 $(OBJS)\client_client.obj
076f10e0
VS
25LIBDIRNAME = \
26 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27OBJS = \
28 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d179e30b
VS
29SERVER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_13) /DWIN32 \
30 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_12_p) \
31 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
33 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
4e209a20
VS
34 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
35 $(CXXFLAGS)
d179e30b
VS
36SERVER_OBJECTS = \
37 $(OBJS)\server_sample.res \
38 $(OBJS)\server_server.obj
0706fb23
VS
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
076f10e0
VS
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
0706fb23
VS
52WXDEBUGFLAG = d
53!endif
54!if "$(SHARED)" == "1"
55WXDLLFLAG = dll
56!endif
57!if "$(UNICODE)" == "1"
58WXUNICODEFLAG = u
59!endif
60!if "$(WXUNIV)" == "1"
61WXUNIVNAME = univ
62!endif
076f10e0 63!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
d179e30b 64__DEBUGINFO = /Zi
250700e4 65!endif
076f10e0 66!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
d179e30b 67__DEBUGINFO =
250700e4 68!endif
076f10e0 69!if "$(DEBUG_INFO)" == "0"
d179e30b 70__DEBUGINFO =
250700e4 71!endif
076f10e0 72!if "$(DEBUG_INFO)" == "1"
d179e30b 73__DEBUGINFO = /Zi
250700e4 74!endif
076f10e0
VS
75!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
76__DEBUGINFO_1 = /DEBUG
250700e4 77!endif
076f10e0
VS
78!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79__DEBUGINFO_1 =
250700e4 80!endif
076f10e0
VS
81!if "$(DEBUG_INFO)" == "0"
82__DEBUGINFO_1 =
83!endif
84!if "$(DEBUG_INFO)" == "1"
85__DEBUGINFO_1 = /DEBUG
86!endif
87!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
d179e30b 88__DEBUGINFO_2 = d
076f10e0
VS
89!endif
90!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
d179e30b 91__DEBUGINFO_2 =
076f10e0
VS
92!endif
93!if "$(DEBUG_INFO)" == "0"
d179e30b 94__DEBUGINFO_2 =
076f10e0
VS
95!endif
96!if "$(DEBUG_INFO)" == "1"
d179e30b
VS
97__DEBUGINFO_2 = d
98!endif
99!if "$(DEBUG_RUNTIME_LIBS)" == "0"
100__DEBUGRUNTIME_13 =
101!endif
102!if "$(DEBUG_RUNTIME_LIBS)" == "1"
103__DEBUGRUNTIME_13 = d
104!endif
105!if "$(DEBUG_RUNTIME_LIBS)" == "default"
106__DEBUGRUNTIME_13 = $(__DEBUGINFO_2)
076f10e0
VS
107!endif
108!if "$(DEBUG_RUNTIME_LIBS)" == "0"
109__DEBUGRUNTIME_3 =
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "1"
112__DEBUGRUNTIME_3 = d
113!endif
114!if "$(DEBUG_RUNTIME_LIBS)" == "default"
d179e30b 115__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
076f10e0
VS
116!endif
117!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
0706fb23
VS
118__DEBUG_DEFINE_p = /D__WXDEBUG__
119!endif
076f10e0
VS
120!if "$(DEBUG_FLAG)" == "1"
121__DEBUG_DEFINE_p = /D__WXDEBUG__
122!endif
123!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
d179e30b 124__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
076f10e0
VS
125!endif
126!if "$(DEBUG_FLAG)" == "1"
d179e30b 127__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
0706fb23
VS
128!endif
129!if "$(SHARED)" == "1"
130__DLLFLAG_p = /DWXUSINGDLL
131!endif
132!if "$(SHARED)" == "1"
d179e30b 133__DLLFLAG_p_0 = /d WXUSINGDLL
076f10e0
VS
134!endif
135!if "$(USE_GUI)" == "1"
136__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
137!endif
138!if "$(USE_GUI)" == "1"
139__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
140!endif
141!if "$(USE_GUI)" == "1"
142__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
0706fb23 143!endif
250700e4 144!if "$(BUILD)" == "debug"
d179e30b 145__OPTIMIZEFLAG = /Od
250700e4
RD
146!endif
147!if "$(BUILD)" == "release"
d179e30b 148__OPTIMIZEFLAG = /O2
250700e4
RD
149!endif
150!if "$(RUNTIME_LIBS)" == "dynamic"
d179e30b 151__RUNTIME_LIBS = D
250700e4
RD
152!endif
153!if "$(RUNTIME_LIBS)" == "static"
d179e30b 154__RUNTIME_LIBS = T
250700e4 155!endif
0706fb23
VS
156!if "$(UNICODE)" == "1"
157__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
158!endif
159!if "$(UNICODE)" == "1"
d179e30b 160__UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=1
0706fb23 161!endif
4e209a20
VS
162!if "$(MSLU)" == "1"
163__UNICOWS_LIB_p = unicows.lib
164!endif
0706fb23
VS
165!if "$(MONOLITHIC)" == "0"
166__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
167!endif
168!if "$(MONOLITHIC)" == "0"
076f10e0
VS
169__WXLIB_CORE_p = \
170 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
0706fb23
VS
171!endif
172!if "$(MONOLITHIC)" == "1"
076f10e0
VS
173__WXLIB_MONO_p = \
174 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
0706fb23 175!endif
d179e30b
VS
176!if "$(MONOLITHIC)" == "0"
177__WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
178!endif
0706fb23
VS
179!if "$(WXUNIV)" == "1"
180__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
181!endif
182!if "$(WXUNIV)" == "1"
d179e30b 183__WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
0706fb23 184!endif
076f10e0 185!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
d179e30b 186____DEBUGINFO = /d _DEBUG
bdc408c4 187!endif
076f10e0 188!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
d179e30b 189____DEBUGINFO =
bdc408c4 190!endif
076f10e0 191!if "$(DEBUG_INFO)" == "0"
d179e30b 192____DEBUGINFO =
bdc408c4 193!endif
076f10e0 194!if "$(DEBUG_INFO)" == "1"
d179e30b 195____DEBUGINFO = /d _DEBUG
076f10e0
VS
196!endif
197!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
d179e30b 198____DEBUGINFO_0 = /D_DEBUG
076f10e0
VS
199!endif
200!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
d179e30b 201____DEBUGINFO_0 =
076f10e0
VS
202!endif
203!if "$(DEBUG_INFO)" == "0"
d179e30b 204____DEBUGINFO_0 =
076f10e0
VS
205!endif
206!if "$(DEBUG_INFO)" == "1"
d179e30b
VS
207____DEBUGINFO_0 = /D_DEBUG
208!endif
209!if "$(DEBUG_RUNTIME_LIBS)" == "0"
210____DEBUGRUNTIME_12_p =
211!endif
212!if "$(DEBUG_RUNTIME_LIBS)" == "1"
213____DEBUGRUNTIME_12_p = /D_DEBUG
214!endif
215!if "$(DEBUG_RUNTIME_LIBS)" == "default"
216____DEBUGRUNTIME_12_p = $(____DEBUGINFO_0)
217!endif
218!if "$(DEBUG_RUNTIME_LIBS)" == "0"
219____DEBUGRUNTIME_12_p_1 =
220!endif
221!if "$(DEBUG_RUNTIME_LIBS)" == "1"
222____DEBUGRUNTIME_12_p_1 = /d _DEBUG
223!endif
224!if "$(DEBUG_RUNTIME_LIBS)" == "default"
225____DEBUGRUNTIME_12_p_1 = $(____DEBUGINFO)
076f10e0
VS
226!endif
227!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 228____DEBUGRUNTIME_2_p =
076f10e0
VS
229!endif
230!if "$(DEBUG_RUNTIME_LIBS)" == "1"
231____DEBUGRUNTIME_2_p = /D_DEBUG
232!endif
233!if "$(DEBUG_RUNTIME_LIBS)" == "default"
d179e30b 234____DEBUGRUNTIME_2_p = $(____DEBUGINFO_0)
076f10e0
VS
235!endif
236!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 237____DEBUGRUNTIME_2_p_1 =
076f10e0
VS
238!endif
239!if "$(DEBUG_RUNTIME_LIBS)" == "1"
240____DEBUGRUNTIME_2_p_1 = /d _DEBUG
241!endif
242!if "$(DEBUG_RUNTIME_LIBS)" == "default"
d179e30b 243____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO)
bdc408c4 244!endif
0706fb23
VS
245
246
247all: $(OBJS)
248$(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251### Targets: ###
252
d179e30b
VS
253all: $(OBJS)\client.exe $(OBJS)\server.exe
254
255$(OBJS)\client_client.obj: .\client.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
257
258$(OBJS)\client_sample.res: .\..\..\samples\sample.rc
4e209a20 259 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_0) /d _WINDOWS /i ..\..\samples $**
0706fb23 260
d179e30b 261$(OBJS)\server_sample.res: .\..\..\samples\sample.rc
4e209a20 262 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_12_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_0) /d _WINDOWS /i ..\..\samples $**
0706fb23 263
d179e30b
VS
264$(OBJS)\server_server.obj: .\server.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
0706fb23
VS
266
267clean:
268 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
269 -if exist $(OBJS)\*.res del $(OBJS)\*.res
d179e30b
VS
270 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
271 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
272
273$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
274 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
4e209a20 275 $(CLIENT_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
d179e30b 276<<
0706fb23 277
d179e30b 278$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
076f10e0 279 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
4e209a20 280 $(SERVER_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
0706fb23 281<<