]> git.saurik.com Git - wxWidgets.git/blame - samples/dialogs/makefile.bcc
"oldnames" library is not needed
[wxWidgets.git] / samples / dialogs / makefile.bcc
CommitLineData
6f628073
VS
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# =========================================================================
62448488 6
6f628073
VS
7
8# -------------------------------------------------------------------------
9# These are configurable options:
10# -------------------------------------------------------------------------
11
12# Type of compiled binaries [debug,release]
13!ifndef BUILD
14BUILD = 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
20CFG =
21!endif
22# Standard preprocessor flags (common for CC and CXX)
23!ifndef CPPFLAGS
24CPPFLAGS =
25!endif
26# C++ compiler
27!ifndef CXX
28CXX = bcc32
29!endif
30# Standard flags for C++
31!ifndef CXXFLAGS
32CXXFLAGS =
33!endif
34# Standard linker flags
35!ifndef LDFLAGS
36LDFLAGS =
37!endif
38# Multiple libraries or single huge monolithic one? [0,1]
39!ifndef MONOLITHIC
40MONOLITHIC = 1
41!endif
42# Is this official build by wxWindows developers? [0,1]
43!ifndef OFFICIAL_BUILD
44OFFICIAL_BUILD = 0
45!endif
46# What type of library to build? [0,1]
47!ifndef SHARED
48SHARED = 1
49!endif
50# Compile Unicode build of wxWindows? [0,1]
51!ifndef UNICODE
52UNICODE = 0
53!endif
54# Build GUI libraries? [0,1]
55!ifndef USE_GUI
56USE_GUI = 1
57!endif
58# Build wxUniversal instead of native port? [0,1]
59!ifndef WXUNIV
60WXUNIV = 0
61!endif
62
63# -------------------------------------------------------------------------
64# Do not modify the rest of this file!
65# -------------------------------------------------------------------------
66
67!ifndef BCCDIR
68BCCDIR=$(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
77OBJS = objs_bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
78DIALOGS_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"
83PORTNAME = base
62448488 84!endif
6f628073
VS
85!if "$(USE_GUI)" == "1"
86PORTNAME = msw
87!endif
88!if "$(BUILD)" == "debug"
89WXDEBUGFLAG = d
90!endif
91!if "$(SHARED)" == "1"
92WXDLLFLAG = dll
93!endif
94!if "$(UNICODE)" == "1"
95WXUNICODEFLAG = u
96!endif
97!if "$(WXUNIV)" == "1"
98WXUNIVNAME = 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
132all: $(OBJS)
133$(OBJS):
134 -if not exist $(OBJS) mkdir $(OBJS)
135
136### Targets: ###
137
138all: $(OBJS)\dialogs.exe data
139
140$(OBJS)\dialogs_dialogs.obj: .\dialogs.cpp
141 $(CXX) -c -P -o$@ $(DIALOGS_CXXFLAGS) $**
142
143$(OBJS)\dialogs_dialogs.res: .\dialogs.rc
144 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) $**
145
146clean:
147 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
148 -if exist $(OBJS)\*.res del $(OBJS)\*.res
149 -if exist $(OBJS)\dialogs.exe del $(OBJS)\dialogs.exe
150 -if exist $(OBJS)\tips.txt del $(OBJS)\tips.txt
62448488 151
6f628073 152data:
62448488 153
6f628073
VS
154$(OBJS)\dialogs.exe: $(OBJS)\dialogs_dialogs.obj $(OBJS)\dialogs_dialogs.res
155 ilink32 -Tpe $(LDFLAGS) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -aa @&&|
156 c0w32.obj $(OBJS)\dialogs_dialogs.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)\dialogs_dialogs.res
157|
62448488 158
6f628073 159install: all
62448488 160
6f628073 161uninstall: