]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.vc
link against wxXml
[wxWidgets.git] / samples / sockets / 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
250700e4 7!include <../../build/config.vc>
0706fb23
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
e9877ed3
VS
15CLIENT_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_2) /DWIN32 \
16 $(__DEBUGFLAG) $(____DEBUGFLAG_0) /Fd$(OBJS)\client.pdb $(__OPTIMIZEFLAG) \
17 /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
18 /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff /I.\..\..\src\jpeg \
19 /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
20 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS)
21CLIENT_OBJECTS = \
22 $(OBJS)\client_client.obj \
23 $(OBJS)\client_client.res
24LIBDIRNAME = \
25 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26OBJS = \
27 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28SERVER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_2) /DWIN32 \
29 $(__DEBUGFLAG) $(____DEBUGFLAG_0) /Fd$(OBJS)\server.pdb $(__OPTIMIZEFLAG) \
30 /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
31 /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff /I.\..\..\src\jpeg \
32 /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
33 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS)
34SERVER_OBJECTS = \
35 $(OBJS)\server_server.obj \
36 $(OBJS)\server_server.res
0706fb23
VS
37
38### Conditionally set variables: ###
39
40!if "$(USE_GUI)" == "0"
41PORTNAME = base
42!endif
43!if "$(USE_GUI)" == "1"
44PORTNAME = msw
45!endif
46!if "$(BUILD)" == "debug"
47WXDEBUGFLAG = d
48!endif
49!if "$(SHARED)" == "1"
50WXDLLFLAG = dll
51!endif
52!if "$(UNICODE)" == "1"
53WXUNICODEFLAG = u
54!endif
55!if "$(WXUNIV)" == "1"
56WXUNIVNAME = univ
57!endif
58!if "$(BUILD)" == "debug"
bdc408c4 59__DEBUGFLAG = /Zi
250700e4
RD
60!endif
61!if "$(BUILD)" == "release"
62__DEBUGFLAG =
63!endif
64!if "$(BUILD)" == "debug"
bdc408c4 65__DEBUGFLAG_1 = /DEBUG
250700e4
RD
66!endif
67!if "$(BUILD)" == "release"
bdc408c4 68__DEBUGFLAG_1 =
250700e4
RD
69!endif
70!if "$(BUILD)" == "debug"
e9877ed3 71__DEBUGFLAG_2 = d
250700e4
RD
72!endif
73!if "$(BUILD)" == "release"
e9877ed3 74__DEBUGFLAG_2 =
250700e4
RD
75!endif
76!if "$(BUILD)" == "debug"
0706fb23
VS
77__DEBUG_DEFINE_p = /D__WXDEBUG__
78!endif
79!if "$(BUILD)" == "debug"
e9877ed3 80__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
0706fb23
VS
81!endif
82!if "$(SHARED)" == "1"
83__DLLFLAG_p = /DWXUSINGDLL
84!endif
85!if "$(SHARED)" == "1"
e9877ed3
VS
86__DLLFLAG_p_0 = /d WXUSINGDLL
87!endif
88!if "$(USE_GUI)" == "1"
89__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
90!endif
91!if "$(USE_GUI)" == "1"
92__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
93!endif
94!if "$(USE_GUI)" == "1"
95__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
250700e4
RD
96!endif
97!if "$(BUILD)" == "debug"
98__OPTIMIZEFLAG = /Od
99!endif
100!if "$(BUILD)" == "release"
101__OPTIMIZEFLAG = /O2
102!endif
103!if "$(RUNTIME_LIBS)" == "dynamic"
104__RUNTIME_LIBS = D
105!endif
106!if "$(RUNTIME_LIBS)" == "static"
f509d00d 107__RUNTIME_LIBS = T
0706fb23
VS
108!endif
109!if "$(UNICODE)" == "1"
110__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
111!endif
112!if "$(UNICODE)" == "1"
e9877ed3 113__UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=1
0706fb23
VS
114!endif
115!if "$(MONOLITHIC)" == "0"
116__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
117!endif
118!if "$(MONOLITHIC)" == "0"
e9877ed3
VS
119__WXLIB_CORE_p = \
120 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
0706fb23
VS
121!endif
122!if "$(MONOLITHIC)" == "1"
e9877ed3
VS
123__WXLIB_MONO_p = \
124 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
125!endif
126!if "$(MONOLITHIC)" == "0"
127__WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
0706fb23
VS
128!endif
129!if "$(WXUNIV)" == "1"
130__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
131!endif
132!if "$(WXUNIV)" == "1"
e9877ed3 133__WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
0706fb23 134!endif
bdc408c4 135!if "$(BUILD)" == "debug"
e9877ed3 136____DEBUGFLAG = /d _DEBUG
bdc408c4
VS
137!endif
138!if "$(BUILD)" == "release"
e9877ed3 139____DEBUGFLAG = /d NDEBUG
bdc408c4
VS
140!endif
141!if "$(BUILD)" == "debug"
e9877ed3 142____DEBUGFLAG_0 = /D_DEBUG
bdc408c4
VS
143!endif
144!if "$(BUILD)" == "release"
e9877ed3 145____DEBUGFLAG_0 = /DNDEBUG
bdc408c4 146!endif
0706fb23
VS
147
148
149all: $(OBJS)
150$(OBJS):
151 -if not exist $(OBJS) mkdir $(OBJS)
152
153### Targets: ###
154
250700e4
RD
155all: $(OBJS)\client.exe $(OBJS)\server.exe
156
157$(OBJS)\client_client.obj: .\client.cpp
158 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
159
160$(OBJS)\client_client.res: .\client.rc
e9877ed3 161 rc /fo$@ /d WIN32 $(____DEBUGFLAG) /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 $**
0706fb23 162
250700e4
RD
163$(OBJS)\server_server.obj: .\server.cpp
164 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
0706fb23 165
250700e4 166$(OBJS)\server_server.res: .\server.rc
e9877ed3 167 rc /fo$@ /d WIN32 $(____DEBUGFLAG) /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 $**
0706fb23
VS
168
169clean:
170 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
171 -if exist $(OBJS)\*.res del $(OBJS)\*.res
250700e4
RD
172 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
173 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
0706fb23 174
e9877ed3
VS
175$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
176 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
177 $(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 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
VS
178<<
179
e9877ed3
VS
180$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
181 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
182 $(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 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
250700e4 183<<