]> git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/makefile.bcc
added HelpGen makefiles
[wxWidgets.git] / utils / HelpGen / makefile.bcc
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 # =========================================================================
6
7 !ifndef BCCDIR
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../build/msw/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 HELPGEN_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 \
27 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
28 HELPGEN_OBJECTS = \
29 $(OBJS)\HelpGen_HelpGen.obj \
30 $(OBJS)\HelpGen_cjparser.obj \
31 $(OBJS)\HelpGen_docripper.obj \
32 $(OBJS)\HelpGen_ifcontext.obj \
33 $(OBJS)\HelpGen_markup.obj \
34 $(OBJS)\HelpGen_scriptbinder.obj \
35 $(OBJS)\HelpGen_sourcepainter.obj \
36 $(OBJS)\HelpGen_srcparser.obj \
37 $(OBJS)\HelpGen_wx_extra_imps.obj
38 LIBDIRNAME = \
39 .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
40 OBJS = \
41 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
42
43 ### Conditionally set variables: ###
44
45 !if "$(USE_GUI)" == "0"
46 PORTNAME = base
47 !endif
48 !if "$(USE_GUI)" == "1"
49 PORTNAME = msw
50 !endif
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(DEBUG_FLAG)" == "1"
55 WXDEBUGFLAG = d
56 !endif
57 !if "$(SHARED)" == "1"
58 WXDLLFLAG = dll
59 !endif
60 !if "$(UNICODE)" == "1"
61 WXUNICODEFLAG = u
62 !endif
63 !if "$(WXUNIV)" == "1"
64 WXUNIVNAME = univ
65 !endif
66 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
67 __DEBUGINFO = -v
68 !endif
69 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
70 __DEBUGINFO = -v-
71 !endif
72 !if "$(DEBUG_INFO)" == "0"
73 __DEBUGINFO = -v-
74 !endif
75 !if "$(DEBUG_INFO)" == "1"
76 __DEBUGINFO = -v
77 !endif
78 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
79 __DEBUG_DEFINE_p = -D__WXDEBUG__
80 !endif
81 !if "$(DEBUG_FLAG)" == "1"
82 __DEBUG_DEFINE_p = -D__WXDEBUG__
83 !endif
84 !if "$(SHARED)" == "1"
85 __DLLFLAG_p = -DWXUSINGDLL
86 !endif
87 !if "$(USE_GUI)" == "1"
88 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
89 !endif
90 !if "$(USE_GUI)" == "1"
91 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
92 !endif
93 !if "$(USE_GUI)" == "1"
94 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
95 !endif
96 !if "$(BUILD)" == "debug"
97 __OPTIMIZEFLAG_2 = -Od
98 !endif
99 !if "$(BUILD)" == "release"
100 __OPTIMIZEFLAG_2 = -O2
101 !endif
102 !if "$(RUNTIME_LIBS)" == "dynamic"
103 __RUNTIME_LIBS_6 = -tWR
104 !endif
105 !if "$(RUNTIME_LIBS)" == "static"
106 __RUNTIME_LIBS_6 =
107 !endif
108 !if "$(RUNTIME_LIBS)" == "dynamic"
109 __RUNTIME_LIBS_7 = i
110 !endif
111 !if "$(RUNTIME_LIBS)" == "static"
112 __RUNTIME_LIBS_7 =
113 !endif
114 !if "$(UNICODE)" == "1"
115 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
116 !endif
117 !if "$(MSLU)" == "1"
118 __UNICOWS_LIB_p = unicows.lib
119 !endif
120 !if "$(MONOLITHIC)" == "0"
121 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
122 !endif
123 !if "$(MONOLITHIC)" == "1"
124 __WXLIB_MONO_p = \
125 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
126 !endif
127 !if "$(WXUNIV)" == "1"
128 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
129 !endif
130
131
132 all: $(OBJS)
133 $(OBJS):
134 -if not exist $(OBJS) mkdir $(OBJS)
135
136 ### Targets: ###
137
138 all: $(OBJS)\HelpGen.exe
139
140 $(OBJS)\HelpGen_HelpGen.obj: .\src\HelpGen.cpp
141 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
142
143 $(OBJS)\HelpGen_cjparser.obj: .\src\cjparser.cpp
144 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
145
146 $(OBJS)\HelpGen_docripper.obj: .\src\docripper.cpp
147 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
148
149 $(OBJS)\HelpGen_ifcontext.obj: .\src\ifcontext.cpp
150 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
151
152 $(OBJS)\HelpGen_markup.obj: .\src\markup.cpp
153 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
154
155 $(OBJS)\HelpGen_scriptbinder.obj: .\src\scriptbinder.cpp
156 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
157
158 $(OBJS)\HelpGen_sourcepainter.obj: .\src\sourcepainter.cpp
159 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
160
161 $(OBJS)\HelpGen_srcparser.obj: .\src\srcparser.cpp
162 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
163
164 $(OBJS)\HelpGen_wx_extra_imps.obj: .\src\wx_extra_imps.cpp
165 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
166
167 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
168 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
169 c0x32.obj $(HELPGEN_OBJECTS),$@,, $(__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,,
170 |
171
172 clean:
173 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
174 -if exist $(OBJS)\*.res del $(OBJS)\*.res
175 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe