1) some compilers (Watcom) don't like it if wxBase library PCH file contains
[wxWidgets.git] / samples / ipc / makefile.bcc
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 !ifndef BCCDIR
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../build/msw/config.bcc
12
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
16
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19 !endif
20
21 ### Variables: ###
22
23 CLIENT_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
24         $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25         $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) -I.\..\..\src\tiff \
26         -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex \
27         -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\samples $(CXXFLAGS)
28 CLIENT_OBJECTS =  \
29         $(OBJS)\client_client.obj
30 LIBDIRNAME = \
31         .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
32 OBJS = \
33         bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
34 SERVER_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
35         $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36         $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) -I.\..\..\src\tiff \
37         -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex \
38         -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\samples $(CXXFLAGS)
39 SERVER_OBJECTS =  \
40         $(OBJS)\server_server.obj
41
42 ### Conditionally set variables: ###
43
44 !if "$(USE_GUI)" == "0"
45 PORTNAME = base
46 !endif
47 !if "$(USE_GUI)" == "1"
48 PORTNAME = msw
49 !endif
50 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
51 WXDEBUGFLAG = d
52 !endif
53 !if "$(DEBUG_FLAG)" == "1"
54 WXDEBUGFLAG = d
55 !endif
56 !if "$(SHARED)" == "1"
57 WXDLLFLAG = dll
58 !endif
59 !if "$(UNICODE)" == "1"
60 WXUNICODEFLAG = u
61 !endif
62 !if "$(WXUNIV)" == "1"
63 WXUNIVNAME = univ
64 !endif
65 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
66 __DEBUGINFO = -v
67 !endif
68 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
69 __DEBUGINFO = -v-
70 !endif
71 !if "$(DEBUG_INFO)" == "0"
72 __DEBUGINFO = -v-
73 !endif
74 !if "$(DEBUG_INFO)" == "1"
75 __DEBUGINFO = -v
76 !endif
77 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
78 __DEBUG_DEFINE_p = -D__WXDEBUG__
79 !endif
80 !if "$(DEBUG_FLAG)" == "1"
81 __DEBUG_DEFINE_p = -D__WXDEBUG__
82 !endif
83 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
85 !endif
86 !if "$(DEBUG_FLAG)" == "1"
87 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
88 !endif
89 !if "$(SHARED)" == "1"
90 __DLLFLAG_p = -DWXUSINGDLL
91 !endif
92 !if "$(SHARED)" == "1"
93 __DLLFLAG_p_0 = -dWXUSINGDLL
94 !endif
95 !if "$(USE_GUI)" == "1"
96 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
97 !endif
98 !if "$(USE_GUI)" == "1"
99 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
100 !endif
101 !if "$(USE_GUI)" == "1"
102 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
103 !endif
104 !if "$(BUILD)" == "debug"
105 __OPTIMIZEFLAG = -Od
106 !endif
107 !if "$(BUILD)" == "release"
108 __OPTIMIZEFLAG = -O2
109 !endif
110 !if "$(RUNTIME_LIBS)" == "dynamic"
111 __RUNTIME_LIBS = -tWR
112 !endif
113 !if "$(RUNTIME_LIBS)" == "static"
114 __RUNTIME_LIBS = 
115 !endif
116 !if "$(RUNTIME_LIBS)" == "dynamic"
117 __RUNTIME_LIBS_0 = i
118 !endif
119 !if "$(RUNTIME_LIBS)" == "static"
120 __RUNTIME_LIBS_0 = 
121 !endif
122 !if "$(UNICODE)" == "1"
123 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
124 !endif
125 !if "$(UNICODE)" == "1"
126 __UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=1
127 !endif
128 !if "$(MSLU)" == "1"
129 __UNICOWS_LIB_p = unicows.lib
130 !endif
131 !if "$(MONOLITHIC)" == "0"
132 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
133 !endif
134 !if "$(MONOLITHIC)" == "0"
135 __WXLIB_CORE_p = \
136         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
137 !endif
138 !if "$(MONOLITHIC)" == "1"
139 __WXLIB_MONO_p = \
140         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
141 !endif
142 !if "$(MONOLITHIC)" == "0"
143 __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
144 !endif
145 !if "$(WXUNIV)" == "1"
146 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
147 !endif
148 !if "$(WXUNIV)" == "1"
149 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
150 !endif
151
152
153 all: $(OBJS)
154 $(OBJS):
155         -if not exist $(OBJS) mkdir $(OBJS)
156
157 ### Targets: ###
158
159 all: $(OBJS)\client.exe $(OBJS)\server.exe
160
161 $(OBJS)\client_client.obj: .\client.cpp
162         $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
163
164 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
165         brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -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) -i..\..\samples $**
166
167 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
168         brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -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) -i..\..\samples $**
169
170 $(OBJS)\server_server.obj: .\server.cpp
171         $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**
172
173 clean: 
174         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
175         -if exist $(OBJS)\*.res del $(OBJS)\*.res
176         -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
177         -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
178
179 $(OBJS)\client.exe: $(CLIENT_OBJECTS)  $(OBJS)\client_sample.res
180         ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa  @&&|
181         c0w32.obj $(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) import32.lib ole2w32.lib  cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\client_sample.res
182 |
183
184 $(OBJS)\server.exe: $(SERVER_OBJECTS)  $(OBJS)\server_sample.res
185         ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa  @&&|
186         c0w32.obj $(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) import32.lib ole2w32.lib  cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\server_sample.res
187 |