]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.bcc
added *_WITH_DECL macros so that it is possible to export hashes from
[wxWidgets.git] / samples / sockets / makefile.bcc
CommitLineData
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
8BCCDIR = $(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
23CLIENT_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGFLAG) \
24 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I.\..\..\include \
26 -I.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) \
27 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
bdc408c4 28 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
250700e4
RD
29OBJS = \
30 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
31SERVER_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGFLAG) \
32 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
33 $(__UNICODE_DEFINE_p) -I.\..\..\include \
34 -I.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) \
35 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
bdc408c4 36 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
250700e4
RD
37
38### Conditionally set variables: ###
39
40!if "$(USE_GUI)" == "0"
41PORTNAME = base
42!endif
43!if "$(USE_GUI)" == "1"
44PORTNAME = msw
45!endif
46!if "$(BUILD)" == "debug"
47WXDEBUGFLAG = d
48!endif
49!if "$(SHARED)" == "1"
50WXDLLFLAG = dll
51!endif
52!if "$(UNICODE)" == "1"
53WXUNICODEFLAG = u
54!endif
55!if "$(WXUNIV)" == "1"
56WXUNIVNAME = univ
57!endif
58!if "$(BUILD)" == "debug"
59__DEBUGFLAG = -v
60!endif
61!if "$(BUILD)" == "release"
62__DEBUGFLAG = -v-
63!endif
64!if "$(BUILD)" == "debug"
65__DEBUG_DEFINE_p = -D__WXDEBUG__
66!endif
67!if "$(BUILD)" == "debug"
68__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
69!endif
70!if "$(SHARED)" == "1"
71__DLLFLAG_p = -DWXUSINGDLL
72!endif
73!if "$(SHARED)" == "1"
74__DLLFLAG_p_0 = -dWXUSINGDLL
75!endif
76!if "$(BUILD)" == "debug"
77__OPTIMIZEFLAG = -Od
78!endif
79!if "$(BUILD)" == "release"
80__OPTIMIZEFLAG = -O2
81!endif
82!if "$(RUNTIME_LIBS)" == "dynamic"
83__RUNTIME_LIBS = -tWR
84!endif
85!if "$(RUNTIME_LIBS)" == "static"
86__RUNTIME_LIBS =
87!endif
88!if "$(RUNTIME_LIBS)" == "dynamic"
89__RUNTIME_LIBS_0 = i
90!endif
91!if "$(RUNTIME_LIBS)" == "static"
92__RUNTIME_LIBS_0 =
93!endif
94!if "$(UNICODE)" == "1"
95__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
96!endif
97!if "$(UNICODE)" == "1"
98__UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=1
99!endif
100!if "$(MONOLITHIC)" == "0"
101__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
102!endif
103!if "$(MONOLITHIC)" == "0"
104__WXLIB_CORE_p = \
105 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
106!endif
107!if "$(MONOLITHIC)" == "1"
108__WXLIB_MONO_p = \
109 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
110!endif
111!if "$(WXUNIV)" == "1"
112__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
113!endif
114!if "$(WXUNIV)" == "1"
115__WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
116!endif
117
118
119all: $(OBJS)
120$(OBJS):
121 -if not exist $(OBJS) mkdir $(OBJS)
122
123### Targets: ###
124
125all: $(OBJS)\client.exe $(OBJS)\server.exe
126
127$(OBJS)\client_client.obj: .\client.cpp
128 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
129
130$(OBJS)\client_client.res: .\client.rc
bdc408c4 131 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i.\..\..\lib\bcc_$(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) $**
250700e4
RD
132
133$(OBJS)\server_server.obj: .\server.cpp
134 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**
135
136$(OBJS)\server_server.res: .\server.rc
bdc408c4 137 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i.\..\..\lib\bcc_$(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) $**
250700e4
RD
138
139clean:
140 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
141 -if exist $(OBJS)\*.res del $(OBJS)\*.res
142 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
143 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
144
145$(OBJS)\client.exe: $(OBJS)\client_client.obj $(OBJS)\client_client.res
bdc408c4
VS
146 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGFLAG) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -aa @&&|
147 c0w32.obj $(OBJS)\client_client.obj,$@,, $(__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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\client_client.res
250700e4
RD
148|
149
150$(OBJS)\server.exe: $(OBJS)\server_server.obj $(OBJS)\server_server.res
bdc408c4
VS
151 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGFLAG) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -aa @&&|
152 c0w32.obj $(OBJS)\server_server.obj,$@,, $(__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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\server_server.res
250700e4 153|