]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.vc
18ebbe3d40b0e73d23bbb4ab68657d8ec993429c
[wxWidgets.git] / samples / sockets / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include <../../build/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CLIENT_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)
21 CLIENT_OBJECTS = \
22 $(OBJS)\client_client.obj \
23 $(OBJS)\client_client.res
24 LIBDIRNAME = \
25 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 OBJS = \
27 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 SERVER_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)
34 SERVER_OBJECTS = \
35 $(OBJS)\server_server.obj \
36 $(OBJS)\server_server.res
37
38 ### Conditionally set variables: ###
39
40 !if "$(USE_GUI)" == "0"
41 PORTNAME = base
42 !endif
43 !if "$(USE_GUI)" == "1"
44 PORTNAME = msw
45 !endif
46 !if "$(BUILD)" == "debug"
47 WXDEBUGFLAG = d
48 !endif
49 !if "$(SHARED)" == "1"
50 WXDLLFLAG = dll
51 !endif
52 !if "$(UNICODE)" == "1"
53 WXUNICODEFLAG = u
54 !endif
55 !if "$(WXUNIV)" == "1"
56 WXUNIVNAME = univ
57 !endif
58 !if "$(BUILD)" == "debug"
59 __DEBUGFLAG = /Zi
60 !endif
61 !if "$(BUILD)" == "release"
62 __DEBUGFLAG =
63 !endif
64 !if "$(BUILD)" == "debug"
65 __DEBUGFLAG_1 = /DEBUG
66 !endif
67 !if "$(BUILD)" == "release"
68 __DEBUGFLAG_1 =
69 !endif
70 !if "$(BUILD)" == "debug"
71 __DEBUGFLAG_2 = d
72 !endif
73 !if "$(BUILD)" == "release"
74 __DEBUGFLAG_2 =
75 !endif
76 !if "$(BUILD)" == "debug"
77 __DEBUG_DEFINE_p = /D__WXDEBUG__
78 !endif
79 !if "$(BUILD)" == "debug"
80 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
81 !endif
82 !if "$(SHARED)" == "1"
83 __DLLFLAG_p = /DWXUSINGDLL
84 !endif
85 !if "$(SHARED)" == "1"
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
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"
107 __RUNTIME_LIBS = T
108 !endif
109 !if "$(UNICODE)" == "1"
110 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
111 !endif
112 !if "$(UNICODE)" == "1"
113 __UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=1
114 !endif
115 !if "$(MONOLITHIC)" == "0"
116 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
117 !endif
118 !if "$(MONOLITHIC)" == "0"
119 __WXLIB_CORE_p = \
120 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
121 !endif
122 !if "$(MONOLITHIC)" == "1"
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
128 !endif
129 !if "$(WXUNIV)" == "1"
130 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
131 !endif
132 !if "$(WXUNIV)" == "1"
133 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
134 !endif
135 !if "$(BUILD)" == "debug"
136 ____DEBUGFLAG = /d _DEBUG
137 !endif
138 !if "$(BUILD)" == "release"
139 ____DEBUGFLAG = /d NDEBUG
140 !endif
141 !if "$(BUILD)" == "debug"
142 ____DEBUGFLAG_0 = /D_DEBUG
143 !endif
144 !if "$(BUILD)" == "release"
145 ____DEBUGFLAG_0 = /DNDEBUG
146 !endif
147
148
149 all: $(OBJS)
150 $(OBJS):
151 -if not exist $(OBJS) mkdir $(OBJS)
152
153 ### Targets: ###
154
155 all: $(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
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 $**
162
163 $(OBJS)\server_server.obj: .\server.cpp
164 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
165
166 $(OBJS)\server_server.res: .\server.rc
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 $**
168
169 clean:
170 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
171 -if exist $(OBJS)\*.res del $(OBJS)\*.res
172 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
173 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
174
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
178 <<
179
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
183 <<