]> git.saurik.com Git - wxWidgets.git/blame - demos/bombs/makefile.bcc
compilation fix
[wxWidgets.git] / demos / bombs / makefile.bcc
CommitLineData
264af224
VS
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# =========================================================================
025e88c5 6
264af224
VS
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
025e88c5
JS
9!endif
10
fd9f42b6 11!include ../../build/msw/config.bcc
025e88c5 12
264af224
VS
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
025e88c5 16
264af224
VS
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
23BOMBS_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
24 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) \
26 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
4e209a20
VS
27 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) \
28 -I..\..\samples $(CXXFLAGS)
264af224
VS
29BOMBS_OBJECTS = \
30 $(OBJS)\bombs_bombs.obj \
31 $(OBJS)\bombs_bombs1.obj \
32 $(OBJS)\bombs_game.obj
33LIBDIRNAME = \
34 .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
35OBJS = \
36 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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" && "$(DEBUG_FLAG)" == "default"
47WXDEBUGFLAG = d
48!endif
49!if "$(DEBUG_FLAG)" == "1"
50WXDEBUGFLAG = d
51!endif
52!if "$(SHARED)" == "1"
53WXDLLFLAG = dll
54!endif
55!if "$(UNICODE)" == "1"
56WXUNICODEFLAG = u
57!endif
58!if "$(WXUNIV)" == "1"
59WXUNIVNAME = univ
60!endif
61!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
62__DEBUGINFO = -v
63!endif
64!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
65__DEBUGINFO = -v-
66!endif
67!if "$(DEBUG_INFO)" == "0"
68__DEBUGINFO = -v-
69!endif
70!if "$(DEBUG_INFO)" == "1"
71__DEBUGINFO = -v
72!endif
73!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
74__DEBUG_DEFINE_p = -D__WXDEBUG__
75!endif
76!if "$(DEBUG_FLAG)" == "1"
77__DEBUG_DEFINE_p = -D__WXDEBUG__
78!endif
79!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
80__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
81!endif
82!if "$(DEBUG_FLAG)" == "1"
83__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
84!endif
85!if "$(SHARED)" == "1"
86__DLLFLAG_p = -DWXUSINGDLL
87!endif
88!if "$(SHARED)" == "1"
89__DLLFLAG_p_1 = -dWXUSINGDLL
90!endif
91!if "$(USE_GUI)" == "1"
92__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
93!endif
94!if "$(USE_GUI)" == "1"
95__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
96!endif
97!if "$(USE_GUI)" == "1"
98__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
99!endif
100!if "$(BUILD)" == "debug"
101__OPTIMIZEFLAG_2 = -Od
102!endif
103!if "$(BUILD)" == "release"
104__OPTIMIZEFLAG_2 = -O2
105!endif
106!if "$(RUNTIME_LIBS)" == "dynamic"
107__RUNTIME_LIBS_6 = -tWR
108!endif
109!if "$(RUNTIME_LIBS)" == "static"
110__RUNTIME_LIBS_6 =
111!endif
112!if "$(RUNTIME_LIBS)" == "dynamic"
113__RUNTIME_LIBS_7 = i
114!endif
115!if "$(RUNTIME_LIBS)" == "static"
116__RUNTIME_LIBS_7 =
117!endif
118!if "$(UNICODE)" == "1"
119__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
120!endif
121!if "$(UNICODE)" == "1"
122__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
123!endif
4e209a20
VS
124!if "$(MSLU)" == "1"
125__UNICOWS_LIB_p = unicows.lib
126!endif
264af224
VS
127!if "$(MONOLITHIC)" == "0"
128__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
129!endif
130!if "$(MONOLITHIC)" == "0"
131__WXLIB_CORE_p = \
132 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
133!endif
134!if "$(MONOLITHIC)" == "1"
135__WXLIB_MONO_p = \
136 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
137!endif
138!if "$(WXUNIV)" == "1"
139__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140!endif
141!if "$(WXUNIV)" == "1"
142__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
143!endif
144
145
146all: $(OBJS)
147$(OBJS):
148 -if not exist $(OBJS) mkdir $(OBJS)
149
150### Targets: ###
151
152all: $(OBJS)\bombs.exe
153
154$(OBJS)\bombs_bombs.obj: .\bombs.cpp
155 $(CXX) -q -c -P -o$@ $(BOMBS_CXXFLAGS) $**
156
157$(OBJS)\bombs_bombs.res: .\bombs.rc
4e209a20 158 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -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_1) -i..\..\samples $**
264af224
VS
159
160$(OBJS)\bombs_bombs1.obj: .\bombs1.cpp
161 $(CXX) -q -c -P -o$@ $(BOMBS_CXXFLAGS) $**
162
163$(OBJS)\bombs_game.obj: .\game.cpp
164 $(CXX) -q -c -P -o$@ $(BOMBS_CXXFLAGS) $**
165
166$(OBJS)\bombs.exe: $(BOMBS_OBJECTS) $(OBJS)\bombs_bombs.res
167 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
4e209a20 168 c0w32.obj $(BOMBS_OBJECTS),$@,, $(__WXLIB_CORE_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_7).lib,, $(OBJS)\bombs_bombs.res
264af224 169|
025e88c5 170
264af224
VS
171clean:
172 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
173 -if exist $(OBJS)\*.res del $(OBJS)\*.res
174 -if exist $(OBJS)\bombs.exe del $(OBJS)\bombs.exe