]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/ogledit/makefile.bcc
remove unfinished sample for release
[wxWidgets.git] / contrib / samples / ogl / ogledit / makefile.bcc
CommitLineData
fd9f42b6
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
fd9f42b6
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
1fc25a89 6
9bfe7ad9
VS
7.autodepend
8
fd9f42b6 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
fd9f42b6 13BCCDIR = $(MAKEDIR)\..
1fc25a89
JS
14!endif
15
fd9f42b6 16!include ../../../../build/msw/config.bcc
1fc25a89 17
fd9f42b6
VS
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
1fc25a89 21
fd9f42b6
VS
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
fd9f42b6
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
27SETUPHDIR = \
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
29OGLEDIT_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
30 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
fd9f42b6 31 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include \
c33fae85 32 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH \
9bfe7ad9 33 -I.\..\..\..\include $(CPPFLAGS) $(CXXFLAGS)
fd9f42b6
VS
34OGLEDIT_OBJECTS = \
35 $(OBJS)\ogledit_ogledit.obj \
36 $(OBJS)\ogledit_doc.obj \
37 $(OBJS)\ogledit_view.obj \
38 $(OBJS)\ogledit_palette.obj
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
52WXDEBUGFLAG = d
53!endif
fd9f42b6
VS
54!if "$(UNICODE)" == "1"
55WXUNICODEFLAG = u
56!endif
57!if "$(WXUNIV)" == "1"
58WXUNIVNAME = univ
59!endif
fd9f42b6 60!if "$(SHARED)" == "1"
b17c1746 61WXDLLFLAG = dll
fd9f42b6
VS
62!endif
63!if "$(BUILD)" == "debug"
64__OPTIMIZEFLAG_2 = -Od
65!endif
66!if "$(BUILD)" == "release"
67__OPTIMIZEFLAG_2 = -O2
68!endif
69!if "$(RUNTIME_LIBS)" == "dynamic"
70__RUNTIME_LIBS_6 = -tWR
71!endif
72!if "$(RUNTIME_LIBS)" == "static"
73__RUNTIME_LIBS_6 =
74!endif
75!if "$(RUNTIME_LIBS)" == "dynamic"
76__RUNTIME_LIBS_7 = i
77!endif
78!if "$(RUNTIME_LIBS)" == "static"
79__RUNTIME_LIBS_7 =
80!endif
b17c1746
DE
81!if "$(WXUNIV)" == "1"
82__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
83!endif
84!if "$(WXUNIV)" == "1"
85__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
86!endif
87!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
88__DEBUG_DEFINE_p = -D__WXDEBUG__
89!endif
90!if "$(DEBUG_FLAG)" == "1"
91__DEBUG_DEFINE_p = -D__WXDEBUG__
92!endif
93!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
94__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
95!endif
96!if "$(DEBUG_FLAG)" == "1"
97__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
98!endif
fd9f42b6 99!if "$(UNICODE)" == "1"
ec08d395 100__UNICODE_DEFINE_p = -D_UNICODE
fd9f42b6
VS
101!endif
102!if "$(UNICODE)" == "1"
ec08d395 103__UNICODE_DEFINE_p_1 = -d_UNICODE
fd9f42b6 104!endif
b17c1746
DE
105!if "$(SHARED)" == "1"
106__DLLFLAG_p = -DWXUSINGDLL
2265a2d5 107!endif
b17c1746
DE
108!if "$(SHARED)" == "1"
109__DLLFLAG_p_1 = -dWXUSINGDLL
fd9f42b6
VS
110!endif
111!if "$(MONOLITHIC)" == "0"
112__WXLIB_CORE_p = \
c33fae85 113 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
fd9f42b6 114!endif
b17c1746 115!if "$(MONOLITHIC)" == "0"
c33fae85
RN
116__WXLIB_BASE_p = \
117 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 118!endif
fd9f42b6
VS
119!if "$(MONOLITHIC)" == "1"
120__WXLIB_MONO_p = \
c33fae85 121 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
fd9f42b6 122!endif
b17c1746 123!if "$(USE_GUI)" == "1"
c33fae85 124__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
fd9f42b6 125!endif
b17c1746 126!if "$(USE_GUI)" == "1"
c33fae85 127__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
b17c1746
DE
128!endif
129!if "$(USE_GUI)" == "1"
c33fae85 130__LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
b17c1746
DE
131!endif
132!if "$(MSLU)" == "1"
133__UNICOWS_LIB_p = unicows.lib
134!endif
135!if "$(SHARED)" == "0"
136LIBDIRNAME = .\..\..\..\..\lib\bcc_lib$(CFG)
137!endif
138!if "$(SHARED)" == "1"
139LIBDIRNAME = .\..\..\..\..\lib\bcc_dll$(CFG)
140!endif
141!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142__DEBUGINFO = -v
143!endif
144!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145__DEBUGINFO = -v-
146!endif
147!if "$(DEBUG_INFO)" == "0"
148__DEBUGINFO = -v-
149!endif
150!if "$(DEBUG_INFO)" == "1"
151__DEBUGINFO = -v
fd9f42b6
VS
152!endif
153
fd9f42b6
VS
154
155all: $(OBJS)
156$(OBJS):
157 -if not exist $(OBJS) mkdir $(OBJS)
158
159### Targets: ###
160
161all: $(OBJS)\ogledit.exe
162
fd9f42b6
VS
163clean:
164 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
165 -if exist $(OBJS)\*.res del $(OBJS)\*.res
166 -if exist $(OBJS)\ogledit.exe del $(OBJS)\ogledit.exe
ec08d395
JS
167 -if exist $(OBJS)\ogledit.tds del $(OBJS)\ogledit.tds
168 -if exist $(OBJS)\ogledit.ilc del $(OBJS)\ogledit.ilc
169 -if exist $(OBJS)\ogledit.ild del $(OBJS)\ogledit.ild
170 -if exist $(OBJS)\ogledit.ilf del $(OBJS)\ogledit.ilf
171 -if exist $(OBJS)\ogledit.ils del $(OBJS)\ogledit.ils
1fc25a89 172
fd9f42b6 173$(OBJS)\ogledit.exe: $(OGLEDIT_OBJECTS) $(OBJS)\ogledit_ogledit.res
9bfe7ad9 174 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
c33fae85 175 c0w32.obj $(OGLEDIT_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\ogledit_ogledit.res
fd9f42b6 176|
b17c1746
DE
177
178$(OBJS)\ogledit_ogledit.obj: .\ogledit.cpp
179 $(CXX) -q -c -P -o$@ $(OGLEDIT_CXXFLAGS) $**
180
181$(OBJS)\ogledit_doc.obj: .\doc.cpp
182 $(CXX) -q -c -P -o$@ $(OGLEDIT_CXXFLAGS) $**
183
184$(OBJS)\ogledit_view.obj: .\view.cpp
185 $(CXX) -q -c -P -o$@ $(OGLEDIT_CXXFLAGS) $**
186
187$(OBJS)\ogledit_palette.obj: .\palette.cpp
188 $(CXX) -q -c -P -o$@ $(OGLEDIT_CXXFLAGS) $**
189
190$(OBJS)\ogledit_ogledit.res: .\ogledit.rc
c33fae85 191 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\..\..\samples -dNOPCH -i.\..\..\..\include $**