]> git.saurik.com Git - wxWidgets.git/blame - utils/HelpGen/src/makefile.bcc
add -mno-cygwin detection: we should treat cygwin as Windows, not Unix, when it's...
[wxWidgets.git] / utils / HelpGen / src / makefile.bcc
CommitLineData
2ace0078
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
2ace0078
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
2ace0078 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
2ace0078
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
8ba95a18 16!include ../../../build/msw/config.bcc
2ace0078
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
2ace0078
VS
22### Variables: ###
23
4cbcfb73 24WX_RELEASE_NODOT = 27
b17c1746
DE
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 27LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
30HELPGEN_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
34 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
35 -DwxUSE_GUI=0 $(CPPFLAGS) $(CXXFLAGS)
2ace0078
VS
36HELPGEN_OBJECTS = \
37 $(OBJS)\HelpGen_HelpGen.obj \
38 $(OBJS)\HelpGen_cjparser.obj \
39 $(OBJS)\HelpGen_docripper.obj \
40 $(OBJS)\HelpGen_ifcontext.obj \
41 $(OBJS)\HelpGen_markup.obj \
42 $(OBJS)\HelpGen_scriptbinder.obj \
43 $(OBJS)\HelpGen_sourcepainter.obj \
75a0a7b7 44 $(OBJS)\HelpGen_srcparser.obj
2ace0078
VS
45
46### Conditionally set variables: ###
47
48!if "$(USE_GUI)" == "0"
49PORTNAME = base
50!endif
51!if "$(USE_GUI)" == "1"
52PORTNAME = msw
53!endif
54!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55WXDEBUGFLAG = d
56!endif
57!if "$(DEBUG_FLAG)" == "1"
58WXDEBUGFLAG = d
59!endif
2ace0078
VS
60!if "$(UNICODE)" == "1"
61WXUNICODEFLAG = u
62!endif
63!if "$(WXUNIV)" == "1"
64WXUNIVNAME = univ
65!endif
2ace0078 66!if "$(SHARED)" == "1"
b17c1746 67WXDLLFLAG = dll
2ace0078 68!endif
162a956b
JS
69!if "$(SHARED)" == "0"
70LIBTYPE_SUFFIX = lib
71!endif
72!if "$(SHARED)" == "1"
73LIBTYPE_SUFFIX = dll
74!endif
dd65d8c8
RN
75!if "$(MONOLITHIC)" == "0"
76EXTRALIBS_FOR_BASE =
77!endif
78!if "$(MONOLITHIC)" == "1"
79EXTRALIBS_FOR_BASE =
80!endif
2ace0078
VS
81!if "$(BUILD)" == "debug"
82__OPTIMIZEFLAG_2 = -Od
83!endif
84!if "$(BUILD)" == "release"
85__OPTIMIZEFLAG_2 = -O2
86!endif
8c9f8f91
JS
87!if "$(USE_THREADS)" == "0"
88__THREADSFLAG_5 =
89!endif
90!if "$(USE_THREADS)" == "1"
91__THREADSFLAG_5 = mt
92!endif
93!if "$(USE_THREADS)" == "0"
94__THREADSFLAG_6 =
95!endif
96!if "$(USE_THREADS)" == "1"
97__THREADSFLAG_6 = -tWM
98!endif
2ace0078 99!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 100__RUNTIME_LIBS_7 = -tWR
2ace0078
VS
101!endif
102!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 103__RUNTIME_LIBS_7 =
2ace0078
VS
104!endif
105!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 106__RUNTIME_LIBS_8 = i
2ace0078
VS
107!endif
108!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 109__RUNTIME_LIBS_8 =
2ace0078 110!endif
b17c1746
DE
111!if "$(WXUNIV)" == "1"
112__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
115__DEBUG_DEFINE_p = -D__WXDEBUG__
116!endif
117!if "$(DEBUG_FLAG)" == "1"
118__DEBUG_DEFINE_p = -D__WXDEBUG__
119!endif
8c9f8f91
JS
120!if "$(USE_EXCEPTIONS)" == "0"
121__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
122!endif
123!if "$(USE_RTTI)" == "0"
124__RTTI_DEFINE_p = -DwxNO_RTTI
125!endif
126!if "$(USE_THREADS)" == "0"
127__THREAD_DEFINE_p = -DwxNO_THREADS
128!endif
2ace0078 129!if "$(UNICODE)" == "1"
8ba95a18 130__UNICODE_DEFINE_p = -D_UNICODE
2ace0078 131!endif
2113bc77
MW
132!if "$(MSLU)" == "1"
133__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
134!endif
3abcf424
RD
135!if "$(USE_GDIPLUS)" == "1"
136__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
137!endif
b17c1746
DE
138!if "$(SHARED)" == "1"
139__DLLFLAG_p = -DWXUSINGDLL
2ace0078
VS
140!endif
141!if "$(MONOLITHIC)" == "0"
c33fae85
RN
142__WXLIB_BASE_p = \
143 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2ace0078
VS
144!endif
145!if "$(MONOLITHIC)" == "1"
146__WXLIB_MONO_p = \
c33fae85 147 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2ace0078 148!endif
b17c1746
DE
149!if "$(MSLU)" == "1"
150__UNICOWS_LIB_p = unicows.lib
151!endif
3abcf424
RD
152!if "$(USE_GDIPLUS)" == "1"
153__GDIPLUS_LIB_p = gdiplus.lib
154!endif
b17c1746
DE
155!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
156__DEBUGINFO = -v
157!endif
158!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159__DEBUGINFO = -v-
160!endif
161!if "$(DEBUG_INFO)" == "0"
162__DEBUGINFO = -v-
163!endif
164!if "$(DEBUG_INFO)" == "1"
165__DEBUGINFO = -v
2ace0078
VS
166!endif
167
168
169all: $(OBJS)
170$(OBJS):
171 -if not exist $(OBJS) mkdir $(OBJS)
172
173### Targets: ###
174
175all: $(OBJS)\HelpGen.exe
176
b17c1746
DE
177clean:
178 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
179 -if exist $(OBJS)\*.res del $(OBJS)\*.res
162a956b 180 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
181 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
182 -if exist $(OBJS)\HelpGen.tds del $(OBJS)\HelpGen.tds
183 -if exist $(OBJS)\HelpGen.ilc del $(OBJS)\HelpGen.ilc
184 -if exist $(OBJS)\HelpGen.ild del $(OBJS)\HelpGen.ild
185 -if exist $(OBJS)\HelpGen.ilf del $(OBJS)\HelpGen.ilf
186 -if exist $(OBJS)\HelpGen.ils del $(OBJS)\HelpGen.ils
187
188$(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
189 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
3abcf424 190 c0x32.obj $(HELPGEN_OBJECTS),$@,, $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,,
b17c1746
DE
191|
192
204e4cd6 193$(OBJS)\HelpGen_HelpGen.obj: .\HelpGen.cpp
2ace0078
VS
194 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
195
204e4cd6 196$(OBJS)\HelpGen_cjparser.obj: .\cjparser.cpp
2ace0078
VS
197 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
198
204e4cd6 199$(OBJS)\HelpGen_docripper.obj: .\docripper.cpp
2ace0078
VS
200 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
201
204e4cd6 202$(OBJS)\HelpGen_ifcontext.obj: .\ifcontext.cpp
2ace0078
VS
203 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
204
204e4cd6 205$(OBJS)\HelpGen_markup.obj: .\markup.cpp
2ace0078
VS
206 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
207
204e4cd6 208$(OBJS)\HelpGen_scriptbinder.obj: .\scriptbinder.cpp
2ace0078
VS
209 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
210
204e4cd6 211$(OBJS)\HelpGen_sourcepainter.obj: .\sourcepainter.cpp
2ace0078
VS
212 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
213
204e4cd6 214$(OBJS)\HelpGen_srcparser.obj: .\srcparser.cpp
2ace0078 215 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
162a956b 216