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