]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.bcc
Added wxHtmlPrintout::AddFilter so the same filters used for
[wxWidgets.git] / samples / console / 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# =========================================================================
6
0706fb23
VS
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
6f628073
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
6f628073
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
6f628073
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)
6f628073
VS
77CONSOLE_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) $(__MULTILIB_FLAG_p) $(CXXFLAGS)
78
79### Conditionally set variables: ###
80
81!if "$(USE_GUI)" == "0"
82PORTNAME = base
83!endif
84!if "$(USE_GUI)" == "1"
85PORTNAME = msw
86!endif
87!if "$(BUILD)" == "debug"
88WXDEBUGFLAG = d
89!endif
90!if "$(SHARED)" == "1"
91WXDLLFLAG = dll
92!endif
93!if "$(UNICODE)" == "1"
94WXUNICODEFLAG = u
95!endif
96!if "$(WXUNIV)" == "1"
97WXUNIVNAME = univ
98!endif
99!if "$(BUILD)" == "debug"
100__DEBUG_DEFINE_p = -D__WXDEBUG__
101!endif
102!if "$(SHARED)" == "1"
103__DLLFLAG_p = -DWXUSINGDLL
104!endif
105!if "$(MONOLITHIC)" == "0"
106__MULTILIB_FLAG_p = -DwxUSE_GUI=0
107!endif
108!if "$(UNICODE)" == "1"
109__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
110!endif
111!if "$(MONOLITHIC)" == "0"
0706fb23 112__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
6f628073
VS
113!endif
114!if "$(MONOLITHIC)" == "1"
115__WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
116!endif
117!if "$(WXUNIV)" == "1"
118__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
119!endif
120
121
122all: $(OBJS)
123$(OBJS):
124 -if not exist $(OBJS) mkdir $(OBJS)
125
126### Targets: ###
127
128all: $(OBJS)\console.exe data
129
130$(OBJS)\console_console.obj: .\console.cpp
0706fb23 131 $(CXX) -q -c -P -o$@ $(CONSOLE_CXXFLAGS) $**
6f628073
VS
132
133clean:
134 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
135 -if exist $(OBJS)\*.res del $(OBJS)\*.res
136 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
137 -if exist $(OBJS)\testdata.fc del $(OBJS)\testdata.fc
138
139$(OBJS)\console.exe: $(OBJS)\console_console.obj
140 ilink32 -Tpe $(LDFLAGS) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -ap -ap @&&|
141 c0x32.obj $(OBJS)\console_console.obj,$@,, $(__WXLIB_MONO_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,,
142|
143
144data:
0706fb23
VS
145 if not exist $(OBJS) mkdir $(OBJS)
146 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
6f628073
VS
147
148install: all
149
150uninstall: