]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.vc
1. use three numbers version in win32 DLLs on unstable branch
[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_3) /DWIN32 $(__DEBUGFLAG) /Fd$(OBJS)\client.pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I.\..\..\src\tiff /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS)
16 OBJS = vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SERVER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_3) /DWIN32 $(__DEBUGFLAG) /Fd$(OBJS)\server.pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I.\..\..\src\tiff /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS)
18
19 ### Conditionally set variables: ###
20
21 !if "$(USE_GUI)" == "0"
22 PORTNAME = base
23 !endif
24 !if "$(USE_GUI)" == "1"
25 PORTNAME = msw
26 !endif
27 !if "$(BUILD)" == "debug"
28 WXDEBUGFLAG = d
29 !endif
30 !if "$(SHARED)" == "1"
31 WXDLLFLAG = dll
32 !endif
33 !if "$(UNICODE)" == "1"
34 WXUNICODEFLAG = u
35 !endif
36 !if "$(WXUNIV)" == "1"
37 WXUNIVNAME = univ
38 !endif
39 !if "$(BUILD)" == "debug"
40 __DEBUGFLAG = /Zi
41 !endif
42 !if "$(BUILD)" == "release"
43 __DEBUGFLAG =
44 !endif
45 !if "$(BUILD)" == "debug"
46 __DEBUGFLAG_1 = /DEBUG
47 !endif
48 !if "$(BUILD)" == "release"
49 __DEBUGFLAG_1 =
50 !endif
51 !if "$(BUILD)" == "debug"
52 __DEBUGFLAG_3 = d
53 !endif
54 !if "$(BUILD)" == "release"
55 __DEBUGFLAG_3 =
56 !endif
57 !if "$(BUILD)" == "debug"
58 __DEBUG_DEFINE_p = /D__WXDEBUG__
59 !endif
60 !if "$(BUILD)" == "debug"
61 __DEBUG_DEFINE_p_0 = /d__WXDEBUG__
62 !endif
63 !if "$(SHARED)" == "1"
64 __DLLFLAG_p = /DWXUSINGDLL
65 !endif
66 !if "$(SHARED)" == "1"
67 __DLLFLAG_p_0 = /dWXUSINGDLL
68 !endif
69 !if "$(BUILD)" == "debug"
70 __OPTIMIZEFLAG = /Od
71 !endif
72 !if "$(BUILD)" == "release"
73 __OPTIMIZEFLAG = /O2
74 !endif
75 !if "$(RUNTIME_LIBS)" == "dynamic"
76 __RUNTIME_LIBS = D
77 !endif
78 !if "$(RUNTIME_LIBS)" == "static"
79 __RUNTIME_LIBS = T
80 !endif
81 !if "$(UNICODE)" == "1"
82 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
83 !endif
84 !if "$(UNICODE)" == "1"
85 __UNICODE_DEFINE_p_0 = /dwxUSE_UNICODE=1
86 !endif
87 !if "$(MONOLITHIC)" == "0"
88 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
89 !endif
90 !if "$(MONOLITHIC)" == "0"
91 __WXLIB_CORE_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
92 !endif
93 !if "$(MONOLITHIC)" == "1"
94 __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
95 !endif
96 !if "$(WXUNIV)" == "1"
97 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
98 !endif
99 !if "$(WXUNIV)" == "1"
100 __WXUNIV_DEFINE_p_0 = /d__WXUNIVERSAL__
101 !endif
102 !if "$(BUILD)" == "debug"
103 ____DEBUGFLAG = /D_DEBUG
104 !endif
105 !if "$(BUILD)" == "release"
106 ____DEBUGFLAG = /DNDEBUG
107 !endif
108 !if "$(BUILD)" == "debug"
109 ____DEBUGFLAG_0 = /d_DEBUG
110 !endif
111 !if "$(BUILD)" == "release"
112 ____DEBUGFLAG_0 = /dNDEBUG
113 !endif
114
115
116 all: $(OBJS)
117 $(OBJS):
118 -if not exist $(OBJS) mkdir $(OBJS)
119
120 ### Targets: ###
121
122 all: $(OBJS)\client.exe $(OBJS)\server.exe
123
124 $(OBJS)\client_client.obj: .\client.cpp
125 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
126
127 $(OBJS)\client_client.res: .\client.rc
128 rc /fo$@ /dWIN32 $(____DEBUGFLAG_0) /d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i.\..\..\include /i.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /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 $**
129
130 $(OBJS)\server_server.obj: .\server.cpp
131 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
132
133 $(OBJS)\server_server.res: .\server.rc
134 rc /fo$@ /dWIN32 $(____DEBUGFLAG_0) /d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i.\..\..\include /i.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /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 $**
135
136 clean:
137 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
138 -if exist $(OBJS)\*.res del $(OBJS)\*.res
139 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
140 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
141
142 $(OBJS)\client.exe: $(OBJS)\client_client.obj $(OBJS)\client_client.res
143 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /SUBSYSTEM:WINDOWS @<<
144 $(OBJS)\client_client.obj $(OBJS)\client_client.res $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib 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
145 <<
146
147 $(OBJS)\server.exe: $(OBJS)\server_server.obj $(OBJS)\server_server.res
148 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /SUBSYSTEM:WINDOWS @<<
149 $(OBJS)\server_server.obj $(OBJS)\server_server.res $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib 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
150 <<