]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | !ifndef BCCDIR | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
11 | !include ../../build/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) $(__DEBUGFLAG) \ | |
24 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
e9877ed3 VS |
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) $(CXXFLAGS) | |
28 | CLIENT_OBJECTS = \ | |
29 | $(OBJS)\client_client.obj | |
30 | LIBDIRNAME = \ | |
31 | .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
32 | OBJS = \ |
33 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
34 | SERVER_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGFLAG) \ | |
35 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
e9877ed3 VS |
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) $(CXXFLAGS) | |
39 | SERVER_OBJECTS = \ | |
40 | $(OBJS)\server_server.obj | |
250700e4 RD |
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" | |
51 | WXDEBUGFLAG = d | |
52 | !endif | |
53 | !if "$(SHARED)" == "1" | |
54 | WXDLLFLAG = dll | |
55 | !endif | |
56 | !if "$(UNICODE)" == "1" | |
57 | WXUNICODEFLAG = u | |
58 | !endif | |
59 | !if "$(WXUNIV)" == "1" | |
60 | WXUNIVNAME = univ | |
61 | !endif | |
62 | !if "$(BUILD)" == "debug" | |
63 | __DEBUGFLAG = -v | |
64 | !endif | |
65 | !if "$(BUILD)" == "release" | |
66 | __DEBUGFLAG = -v- | |
67 | !endif | |
68 | !if "$(BUILD)" == "debug" | |
69 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
70 | !endif | |
71 | !if "$(BUILD)" == "debug" | |
72 | __DEBUG_DEFINE_p_0 = -d__WXDEBUG__ | |
73 | !endif | |
74 | !if "$(SHARED)" == "1" | |
75 | __DLLFLAG_p = -DWXUSINGDLL | |
76 | !endif | |
77 | !if "$(SHARED)" == "1" | |
78 | __DLLFLAG_p_0 = -dWXUSINGDLL | |
79 | !endif | |
e9877ed3 VS |
80 | !if "$(USE_GUI)" == "1" |
81 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
82 | !endif | |
83 | !if "$(USE_GUI)" == "1" | |
84 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
85 | !endif | |
86 | !if "$(USE_GUI)" == "1" | |
87 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
88 | !endif | |
250700e4 RD |
89 | !if "$(BUILD)" == "debug" |
90 | __OPTIMIZEFLAG = -Od | |
91 | !endif | |
92 | !if "$(BUILD)" == "release" | |
93 | __OPTIMIZEFLAG = -O2 | |
94 | !endif | |
95 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
96 | __RUNTIME_LIBS = -tWR | |
97 | !endif | |
98 | !if "$(RUNTIME_LIBS)" == "static" | |
99 | __RUNTIME_LIBS = | |
100 | !endif | |
101 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
102 | __RUNTIME_LIBS_0 = i | |
103 | !endif | |
104 | !if "$(RUNTIME_LIBS)" == "static" | |
105 | __RUNTIME_LIBS_0 = | |
106 | !endif | |
107 | !if "$(UNICODE)" == "1" | |
108 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
109 | !endif | |
110 | !if "$(UNICODE)" == "1" | |
111 | __UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=1 | |
112 | !endif | |
113 | !if "$(MONOLITHIC)" == "0" | |
114 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
115 | !endif | |
116 | !if "$(MONOLITHIC)" == "0" | |
117 | __WXLIB_CORE_p = \ | |
118 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
119 | !endif | |
120 | !if "$(MONOLITHIC)" == "1" | |
121 | __WXLIB_MONO_p = \ | |
122 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
123 | !endif | |
e9877ed3 VS |
124 | !if "$(MONOLITHIC)" == "0" |
125 | __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib | |
126 | !endif | |
250700e4 RD |
127 | !if "$(WXUNIV)" == "1" |
128 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
129 | !endif | |
130 | !if "$(WXUNIV)" == "1" | |
131 | __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__ | |
132 | !endif | |
133 | ||
134 | ||
135 | all: $(OBJS) | |
136 | $(OBJS): | |
137 | -if not exist $(OBJS) mkdir $(OBJS) | |
138 | ||
139 | ### Targets: ### | |
140 | ||
141 | all: $(OBJS)\client.exe $(OBJS)\server.exe | |
142 | ||
143 | $(OBJS)\client_client.obj: .\client.cpp | |
144 | $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $** | |
145 | ||
146 | $(OBJS)\client_client.res: .\client.rc | |
e9877ed3 | 147 | 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) $** |
250700e4 RD |
148 | |
149 | $(OBJS)\server_server.obj: .\server.cpp | |
150 | $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $** | |
151 | ||
152 | $(OBJS)\server_server.res: .\server.rc | |
e9877ed3 | 153 | 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) $** |
250700e4 RD |
154 | |
155 | clean: | |
156 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
157 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
158 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe | |
159 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
160 | ||
e9877ed3 VS |
161 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res |
162 | ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGFLAG) -L$(LIBDIRNAME) -aa @&&| | |
163 | 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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\client_client.res | |
250700e4 RD |
164 | | |
165 | ||
e9877ed3 VS |
166 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res |
167 | ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGFLAG) -L$(LIBDIRNAME) -aa @&&| | |
168 | 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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\server_server.res | |
250700e4 | 169 | | |