]> git.saurik.com Git - wxWidgets.git/blame - samples/minimal/makefile.bcc
Applied patch [ 758687 ] RegisterHotkey implemented
[wxWidgets.git] / samples / minimal / makefile.bcc
CommitLineData
44404ecd
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
0706fb23
VS
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
44404ecd
VS
10
11# -------------------------------------------------------------------------
12# These are configurable options:
13# -------------------------------------------------------------------------
14
15# Type of compiled binaries [debug,release]
16!ifndef BUILD
17BUILD = 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
23CFG =
24!endif
25# Standard preprocessor flags (common for CC and CXX)
26!ifndef CPPFLAGS
0706fb23 27CPPFLAGS = -a4 -g0 -I$(BCCDIR)\include
44404ecd
VS
28!endif
29# C++ compiler
30!ifndef CXX
31CXX = bcc32
32!endif
33# Standard flags for C++
34!ifndef CXXFLAGS
35CXXFLAGS =
36!endif
37# Standard linker flags
38!ifndef LDFLAGS
39LDFLAGS =
40!endif
41# Multiple libraries or single huge monolithic one? [0,1]
42!ifndef MONOLITHIC
43MONOLITHIC = 1
44!endif
45# Is this official build by wxWindows developers? [0,1]
46!ifndef OFFICIAL_BUILD
47OFFICIAL_BUILD = 0
48!endif
49# What type of library to build? [0,1]
50!ifndef SHARED
51SHARED = 1
52!endif
53# Compile Unicode build of wxWindows? [0,1]
54!ifndef UNICODE
55UNICODE = 0
56!endif
57# Build GUI libraries? [0,1]
58!ifndef USE_GUI
59USE_GUI = 1
60!endif
61# Build wxUniversal instead of native port? [0,1]
62!ifndef WXUNIV
63WXUNIV = 0
64!endif
65
66# -------------------------------------------------------------------------
67# Do not modify the rest of this file!
68# -------------------------------------------------------------------------
69
44404ecd
VS
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
0706fb23 76OBJS = bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
ee5749a6 77MINIMAL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG_2) -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)
44404ecd
VS
78
79### Conditionally set variables: ###
80
84955c7c 81!if "$(USE_GUI)" == "0"
44404ecd 82PORTNAME = base
62448488 83!endif
84955c7c 84!if "$(USE_GUI)" == "1"
44404ecd
VS
85PORTNAME = msw
86!endif
84955c7c 87!if "$(BUILD)" == "debug"
44404ecd
VS
88WXDEBUGFLAG = d
89!endif
84955c7c 90!if "$(SHARED)" == "1"
44404ecd
VS
91WXDLLFLAG = dll
92!endif
84955c7c 93!if "$(UNICODE)" == "1"
44404ecd
VS
94WXUNICODEFLAG = u
95!endif
84955c7c 96!if "$(WXUNIV)" == "1"
44404ecd
VS
97WXUNIVNAME = univ
98!endif
84955c7c 99!if "$(BUILD)" == "debug"
ee5749a6
VS
100__DEBUGFLAG = -v
101!endif
102!if "$(BUILD)" == "release"
103__DEBUGFLAG = -v-
104!endif
105!if "$(BUILD)" == "debug"
44404ecd
VS
106__DEBUG_DEFINE_p = -D__WXDEBUG__
107!endif
84955c7c 108!if "$(BUILD)" == "debug"
44404ecd
VS
109__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
110!endif
84955c7c 111!if "$(SHARED)" == "1"
44404ecd
VS
112__DLLFLAG_p = -DWXUSINGDLL
113!endif
84955c7c 114!if "$(SHARED)" == "1"
44404ecd
VS
115__DLLFLAG_p_1 = -dWXUSINGDLL
116!endif
ee5749a6
VS
117!if "$(BUILD)" == "debug"
118__OPTIMIZEFLAG_2 = -Od
119!endif
120!if "$(BUILD)" == "release"
121__OPTIMIZEFLAG_2 = -O2
122!endif
84955c7c 123!if "$(UNICODE)" == "1"
44404ecd
VS
124__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
125!endif
84955c7c 126!if "$(UNICODE)" == "1"
44404ecd
VS
127__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
128!endif
84955c7c 129!if "$(MONOLITHIC)" == "0"
0706fb23 130__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
44404ecd 131!endif
84955c7c 132!if "$(MONOLITHIC)" == "0"
44404ecd
VS
133__WXLIB_CORE_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
134!endif
84955c7c 135!if "$(MONOLITHIC)" == "1"
44404ecd
VS
136__WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
137!endif
84955c7c 138!if "$(WXUNIV)" == "1"
44404ecd
VS
139__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140!endif
84955c7c 141!if "$(WXUNIV)" == "1"
44404ecd
VS
142__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
143!endif
144
145
146all: $(OBJS)
147$(OBJS):
148 -if not exist $(OBJS) mkdir $(OBJS)
149
150### Targets: ###
151
152all: $(OBJS)\minimal.exe
153
154$(OBJS)\minimal_minimal.obj: .\minimal.cpp
0706fb23 155 $(CXX) -q -c -P -o$@ $(MINIMAL_CXXFLAGS) $**
44404ecd
VS
156
157$(OBJS)\minimal_minimal.res: .\minimal.rc
ee5749a6 158 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) $**
62448488 159
44404ecd
VS
160clean:
161 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
162 -if exist $(OBJS)\*.res del $(OBJS)\*.res
163 -if exist $(OBJS)\minimal.exe del $(OBJS)\minimal.exe
62448488 164
44404ecd 165install: all
62448488 166
44404ecd 167$(OBJS)\minimal.exe: $(OBJS)\minimal_minimal.obj $(OBJS)\minimal_minimal.res
ee5749a6
VS
168 ilink32 -Tpe $(LDFLAGS) $(__DEBUGFLAG) -tWM -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -aa @&&|
169 c0w32.obj $(OBJS)\minimal_minimal.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 cw32mti.lib,, $(OBJS)\minimal_minimal.res
44404ecd 170|
62448488 171
44404ecd 172uninstall: