1) some compilers (Watcom) don't like it if wxBase library PCH file contains
[wxWidgets.git] / samples / xrc / 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 LIBDIRNAME = \
24         .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25 OBJS = \
26         bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 XRCDEMO_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
28         $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29         $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
30         -I$(LIBDIRNAME) -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg \
31         -I.\..\..\..\src\png -I.\..\..\..\src\zlib -I.\..\..\..\src\regex \
32         -I.\..\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\..\samples \
33         -I.\..\..\include $(CXXFLAGS)
34 XRCDEMO_OBJECTS =  \
35         $(OBJS)\xrcdemo_xrcdemo.obj \
36         $(OBJS)\xrcdemo_myframe.obj \
37         $(OBJS)\xrcdemo_derivdlg.obj \
38         $(OBJS)\xrcdemo_custclas.obj
39
40 ### Conditionally set variables: ###
41
42 !if "$(USE_GUI)" == "0"
43 PORTNAME = base
44 !endif
45 !if "$(USE_GUI)" == "1"
46 PORTNAME = msw
47 !endif
48 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49 WXDEBUGFLAG = d
50 !endif
51 !if "$(DEBUG_FLAG)" == "1"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(SHARED)" == "1"
55 WXDLLFLAG = dll
56 !endif
57 !if "$(UNICODE)" == "1"
58 WXUNICODEFLAG = u
59 !endif
60 !if "$(WXUNIV)" == "1"
61 WXUNIVNAME = univ
62 !endif
63 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
64 __DEBUGINFO = -v
65 !endif
66 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
67 __DEBUGINFO = -v-
68 !endif
69 !if "$(DEBUG_INFO)" == "0"
70 __DEBUGINFO = -v-
71 !endif
72 !if "$(DEBUG_INFO)" == "1"
73 __DEBUGINFO = -v
74 !endif
75 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
76 __DEBUG_DEFINE_p = -D__WXDEBUG__
77 !endif
78 !if "$(DEBUG_FLAG)" == "1"
79 __DEBUG_DEFINE_p = -D__WXDEBUG__
80 !endif
81 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
82 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
83 !endif
84 !if "$(DEBUG_FLAG)" == "1"
85 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
86 !endif
87 !if "$(SHARED)" == "1"
88 __DLLFLAG_p = -DWXUSINGDLL
89 !endif
90 !if "$(SHARED)" == "1"
91 __DLLFLAG_p_1 = -dWXUSINGDLL
92 !endif
93 !if "$(USE_GUI)" == "1"
94 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
95 !endif
96 !if "$(USE_GUI)" == "1"
97 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
98 !endif
99 !if "$(USE_GUI)" == "1"
100 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
101 !endif
102 !if "$(BUILD)" == "debug"
103 __OPTIMIZEFLAG_2 = -Od
104 !endif
105 !if "$(BUILD)" == "release"
106 __OPTIMIZEFLAG_2 = -O2
107 !endif
108 !if "$(RUNTIME_LIBS)" == "dynamic"
109 __RUNTIME_LIBS_6 = -tWR
110 !endif
111 !if "$(RUNTIME_LIBS)" == "static"
112 __RUNTIME_LIBS_6 = 
113 !endif
114 !if "$(RUNTIME_LIBS)" == "dynamic"
115 __RUNTIME_LIBS_7 = i
116 !endif
117 !if "$(RUNTIME_LIBS)" == "static"
118 __RUNTIME_LIBS_7 = 
119 !endif
120 !if "$(UNICODE)" == "1"
121 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
122 !endif
123 !if "$(UNICODE)" == "1"
124 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
125 !endif
126 !if "$(MSLU)" == "1"
127 __UNICOWS_LIB_p = unicows.lib
128 !endif
129 !if "$(MONOLITHIC)" == "0"
130 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
131 !endif
132 !if "$(MONOLITHIC)" == "0"
133 __WXLIB_CORE_p = \
134         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
135 !endif
136 !if "$(MONOLITHIC)" == "0"
137 __WXLIB_HTML_p = \
138         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
139 !endif
140 !if "$(MONOLITHIC)" == "1"
141 __WXLIB_MONO_p = \
142         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
143 !endif
144 !if "$(MONOLITHIC)" == "0"
145 __WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib
146 !endif
147 !if "$(WXUNIV)" == "1"
148 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
149 !endif
150 !if "$(WXUNIV)" == "1"
151 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
152 !endif
153
154
155 all: $(OBJS)
156 $(OBJS):
157         -if not exist $(OBJS) mkdir $(OBJS)
158
159 ### Targets: ###
160
161 all: $(OBJS)\xrcdemo.exe data
162
163 $(OBJS)\xrcdemo_custclas.obj: .\custclas.cpp
164         $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
165
166 $(OBJS)\xrcdemo_derivdlg.obj: .\derivdlg.cpp
167         $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
168
169 $(OBJS)\xrcdemo_myframe.obj: .\myframe.cpp
170         $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
171
172 $(OBJS)\xrcdemo_xrcdemo.obj: .\xrcdemo.cpp
173         $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) $**
174
175 $(OBJS)\xrcdemo_xrcdemo.res: .\xrcdemo.rc
176         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 -i.\..\..\include $**
177
178 clean: 
179         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
180         -if exist $(OBJS)\*.res del $(OBJS)\*.res
181         -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe
182
183 data: 
184         if not exist $(OBJS)\rc mkdir $(OBJS)\rc
185         for %f in (appicon.ico appicon.xpm artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc scanning.gif sppicon.ico toolbar.xrc uncenter.xpm uncenter.xrc update.gif variable.xpm variable.xrc) do if not exist $(OBJS)\rc\%f copy .\rc\%f $(OBJS)\rc
186
187 $(OBJS)\xrcdemo.exe: $(XRCDEMO_OBJECTS)  $(OBJS)\xrcdemo_xrcdemo.res
188         ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa  @&&|
189         c0w32.obj $(XRCDEMO_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc.lib $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_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)\xrcdemo_xrcdemo.res
190 |