Baked files with Bakefile 0.1.2 (Mac OS 10.3 Python 2.3)
[wxWidgets.git] / samples / ipc / makefile.bcc
1 # =========================================================================
2 #     This makefile was generated by
3 #     Bakefile 0.1.2 (http://bakefile.sourceforge.net)
4 #     Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 OBJS = \
25         bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 SETUPHDIR = \
27         $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29         $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30         $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31         -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
32 CLIENT_OBJECTS =  \
33         $(OBJS)\client_client.obj
34 SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
35         $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36         $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
37         -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
38 SERVER_OBJECTS =  \
39         $(OBJS)\server_server.obj
40
41 ### Conditionally set variables: ###
42
43 !if "$(USE_GUI)" == "0"
44 PORTNAME = base
45 !endif
46 !if "$(USE_GUI)" == "1"
47 PORTNAME = msw
48 !endif
49 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
50 WXDEBUGFLAG = d
51 !endif
52 !if "$(DEBUG_FLAG)" == "1"
53 WXDEBUGFLAG = d
54 !endif
55 !if "$(UNICODE)" == "1"
56 WXUNICODEFLAG = u
57 !endif
58 !if "$(WXUNIV)" == "1"
59 WXUNIVNAME = univ
60 !endif
61 !if "$(SHARED)" == "1"
62 WXDLLFLAG = dll
63 !endif
64 !if "$(BUILD)" == "debug"
65 __OPTIMIZEFLAG = -Od
66 !endif
67 !if "$(BUILD)" == "release"
68 __OPTIMIZEFLAG = -O2
69 !endif
70 !if "$(RUNTIME_LIBS)" == "dynamic"
71 __RUNTIME_LIBS = -tWR
72 !endif
73 !if "$(RUNTIME_LIBS)" == "static"
74 __RUNTIME_LIBS = 
75 !endif
76 !if "$(RUNTIME_LIBS)" == "dynamic"
77 __RUNTIME_LIBS_0 = i
78 !endif
79 !if "$(RUNTIME_LIBS)" == "static"
80 __RUNTIME_LIBS_0 = 
81 !endif
82 !if "$(WXUNIV)" == "1"
83 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
84 !endif
85 !if "$(WXUNIV)" == "1"
86 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
87 !endif
88 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 __DEBUG_DEFINE_p = -D__WXDEBUG__
90 !endif
91 !if "$(DEBUG_FLAG)" == "1"
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
93 !endif
94 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
95 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
96 !endif
97 !if "$(DEBUG_FLAG)" == "1"
98 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
99 !endif
100 !if "$(UNICODE)" == "1"
101 __UNICODE_DEFINE_p = -D_UNICODE
102 !endif
103 !if "$(UNICODE)" == "1"
104 __UNICODE_DEFINE_p_0 = -d_UNICODE
105 !endif
106 !if "$(SHARED)" == "0"
107 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
108 !endif
109 !if "$(SHARED)" == "1"
110 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
111 !endif
112 !if "$(SHARED)" == "1"
113 __DLLFLAG_p = -DWXUSINGDLL
114 !endif
115 !if "$(SHARED)" == "1"
116 __DLLFLAG_p_0 = -dWXUSINGDLL
117 !endif
118 !if "$(MONOLITHIC)" == "0"
119 __WXLIB_CORE_p = \
120         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
121 !endif
122 !if "$(MONOLITHIC)" == "0"
123 __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
124 !endif
125 !if "$(MONOLITHIC)" == "0"
126 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
127 !endif
128 !if "$(MONOLITHIC)" == "1"
129 __WXLIB_MONO_p = \
130         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
131 !endif
132 !if "$(USE_GUI)" == "1"
133 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
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 "$(MSLU)" == "1"
142 __UNICOWS_LIB_p = unicows.lib
143 !endif
144 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
145 __DEBUGINFO = -v
146 !endif
147 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
148 __DEBUGINFO = -v-
149 !endif
150 !if "$(DEBUG_INFO)" == "0"
151 __DEBUGINFO = -v-
152 !endif
153 !if "$(DEBUG_INFO)" == "1"
154 __DEBUGINFO = -v
155 !endif
156
157
158 all: $(OBJS)
159 $(OBJS):
160         -if not exist $(OBJS) mkdir $(OBJS)
161
162 ### Targets: ###
163
164 all: $(OBJS)\client.exe $(OBJS)\server.exe
165
166 clean: 
167         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
168         -if exist $(OBJS)\*.res del $(OBJS)\*.res
169         -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
170         -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
171         -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
172         -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
173         -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
174         -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
175         -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
176         -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
177         -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
178         -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
179         -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
180         -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
181
182 $(OBJS)\client.exe: $(CLIENT_OBJECTS)  $(OBJS)\client_sample.res
183         ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa @&&|
184         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) ole2w32.lib oleacc.lib  import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\client_sample.res
185 |
186
187 $(OBJS)\server.exe: $(SERVER_OBJECTS)  $(OBJS)\server_sample.res
188         ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa @&&|
189         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) ole2w32.lib oleacc.lib  import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\server_sample.res
190 |
191
192 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
193         brcc32 -32 -r -fo$@ -i$(BCCDIR)\include  -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples $**
194
195 $(OBJS)\client_client.obj: .\client.cpp
196         $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
197
198 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
199         brcc32 -32 -r -fo$@ -i$(BCCDIR)\include  -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples $**
200
201 $(OBJS)\server_server.obj: .\server.cpp
202         $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**