]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.bcc
stop usign a deprecated method, and ensure that the imagelist
[wxWidgets.git] / samples / widgets / 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 # -------------------------------------------------------------------------
12 # These are configurable options:
13 # -------------------------------------------------------------------------
14
15 # Type of compiled binaries [debug,release]
16 !ifndef BUILD
17 BUILD = release
18 !endif
19 # Name of your custom configuration. This affects directory
20 # where object files are stored as well as the location of
21 # compiled .lib files and setup.h under the lib/ toplevel directory.
22 !ifndef CFG
23 CFG =
24 !endif
25 # Standard preprocessor flags (common for CC and CXX)
26 !ifndef CPPFLAGS
27 CPPFLAGS = -a4 -g0 -I$(BCCDIR)\include
28 !endif
29 # C++ compiler
30 !ifndef CXX
31 CXX = bcc32
32 !endif
33 # Standard flags for C++
34 !ifndef CXXFLAGS
35 CXXFLAGS =
36 !endif
37 # Standard linker flags
38 !ifndef LDFLAGS
39 LDFLAGS =
40 !endif
41 # Multiple libraries or single huge monolithic one? [0,1]
42 !ifndef MONOLITHIC
43 MONOLITHIC = 1
44 !endif
45 # Is this official build by wxWindows developers? [0,1]
46 !ifndef OFFICIAL_BUILD
47 OFFICIAL_BUILD = 0
48 !endif
49 # What type of library to build? [0,1]
50 !ifndef SHARED
51 SHARED = 1
52 !endif
53 # Compile Unicode build of wxWindows? [0,1]
54 !ifndef UNICODE
55 UNICODE = 0
56 !endif
57 # Build GUI libraries? [0,1]
58 !ifndef USE_GUI
59 USE_GUI = 1
60 !endif
61 # Build wxUniversal instead of native port? [0,1]
62 !ifndef WXUNIV
63 WXUNIV = 0
64 !endif
65
66 # -------------------------------------------------------------------------
67 # Do not modify the rest of this file!
68 # -------------------------------------------------------------------------
69
70 !if "$(BCCDIR)" == "\.."
71 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
72 !endif
73
74 ### Variables: ###
75
76 OBJS = bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
77 WIDGETS_CXXFLAGS = $(CPPFLAGS) -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -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. $(__DLLFLAG_p) $(CXXFLAGS)
78
79 ### Conditionally set variables: ###
80
81 !if "$(USE_GUI)" == "0"
82 PORTNAME = base
83 !endif
84 !if "$(USE_GUI)" == "1"
85 PORTNAME = msw
86 !endif
87 !if "$(BUILD)" == "debug"
88 WXDEBUGFLAG = d
89 !endif
90 !if "$(SHARED)" == "1"
91 WXDLLFLAG = dll
92 !endif
93 !if "$(UNICODE)" == "1"
94 WXUNICODEFLAG = u
95 !endif
96 !if "$(WXUNIV)" == "1"
97 WXUNIVNAME = univ
98 !endif
99 !if "$(BUILD)" == "debug"
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 !endif
102 !if "$(BUILD)" == "debug"
103 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
104 !endif
105 !if "$(SHARED)" == "1"
106 __DLLFLAG_p = -DWXUSINGDLL
107 !endif
108 !if "$(SHARED)" == "1"
109 __DLLFLAG_p_1 = -dWXUSINGDLL
110 !endif
111 !if "$(UNICODE)" == "1"
112 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
113 !endif
114 !if "$(UNICODE)" == "1"
115 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
116 !endif
117 !if "$(MONOLITHIC)" == "0"
118 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
119 !endif
120 !if "$(MONOLITHIC)" == "0"
121 __WXLIB_CORE_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
122 !endif
123 !if "$(MONOLITHIC)" == "1"
124 __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
125 !endif
126 !if "$(WXUNIV)" == "1"
127 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
128 !endif
129 !if "$(WXUNIV)" == "1"
130 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
131 !endif
132
133
134 all: $(OBJS)
135 $(OBJS):
136 -if not exist $(OBJS) mkdir $(OBJS)
137
138 ### Targets: ###
139
140 all: $(OBJS)\widgets.exe
141
142 $(OBJS)\widgets_button.obj: .\button.cpp
143 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
144
145 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
146 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
147
148 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
149 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
150
151 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
152 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
153
154 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
155 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
156
157 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
158 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
159
160 $(OBJS)\widgets_slider.obj: .\slider.cpp
161 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
162
163 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
164 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
165
166 $(OBJS)\widgets_static.obj: .\static.cpp
167 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
168
169 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
170 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
171
172 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
173 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
174
175 $(OBJS)\widgets_widgets.res: .\widgets.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./../../lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -i./../../src/tiff -i./../../src/jpeg -i./../../src/png -i./../../src/zlib -i./../../src/regex -i. $(__DLLFLAG_p_1) $**
177
178 clean:
179 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
180 -if exist $(OBJS)\*.res del $(OBJS)\*.res
181 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
182
183 install: all
184
185 uninstall:
186
187 $(OBJS)\widgets.exe: $(OBJS)\widgets_button.obj $(OBJS)\widgets_combobox.obj $(OBJS)\widgets_gauge.obj $(OBJS)\widgets_listbox.obj $(OBJS)\widgets_notebook.obj $(OBJS)\widgets_radiobox.obj $(OBJS)\widgets_slider.obj $(OBJS)\widgets_spinbtn.obj $(OBJS)\widgets_static.obj $(OBJS)\widgets_textctrl.obj $(OBJS)\widgets_widgets.obj $(OBJS)\widgets_widgets.res
188 ilink32 -Tpe $(LDFLAGS) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -aa @&&|
189 c0w32.obj $(OBJS)\widgets_button.obj $(OBJS)\widgets_combobox.obj $(OBJS)\widgets_gauge.obj $(OBJS)\widgets_listbox.obj $(OBJS)\widgets_notebook.obj $(OBJS)\widgets_radiobox.obj $(OBJS)\widgets_slider.obj $(OBJS)\widgets_spinbtn.obj $(OBJS)\widgets_static.obj $(OBJS)\widgets_textctrl.obj $(OBJS)\widgets_widgets.obj,$@,, $(__WXLIB_MONO_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib import32.lib ole2w32.lib cw32.lib,, $(OBJS)\widgets_widgets.res
190 |