]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | CONSOLE_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) | |
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 "$(SHARED)" == "1" | |
104 | __DLLFLAG_p = -DWXUSINGDLL | |
105 | !endif | |
106 | !if "$(MONOLITHIC)" == "0" | |
107 | __MULTILIB_FLAG_p = -DwxUSE_GUI=0 | |
108 | !endif | |
109 | !if "$(UNICODE)" == "1" | |
110 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
111 | !endif | |
112 | !if "$(MONOLITHIC)" == "0" | |
113 | __WXLIB_BASE_p = wx25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_base.lib | |
114 | !endif | |
115 | !if "$(MONOLITHIC)" == "1" | |
116 | __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
117 | !endif | |
118 | !if "$(WXUNIV)" == "1" | |
119 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
120 | !endif | |
121 | ||
122 | ||
123 | all: $(OBJS) | |
124 | $(OBJS): | |
125 | -if not exist $(OBJS) mkdir $(OBJS) | |
126 | ||
127 | ### Targets: ### | |
128 | ||
129 | all: $(OBJS)\console.exe data | |
130 | ||
131 | $(OBJS)\console_console.obj: .\console.cpp | |
132 | $(CXX) -c -P -o$@ $(CONSOLE_CXXFLAGS) $** | |
133 | ||
134 | clean: | |
135 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
136 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
137 | -if exist $(OBJS)\console.exe del $(OBJS)\console.exe | |
138 | -if exist $(OBJS)\testdata.fc del $(OBJS)\testdata.fc | |
139 | ||
140 | $(OBJS)\console.exe: $(OBJS)\console_console.obj | |
141 | ilink32 -Tpe $(LDFLAGS) -L.\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -ap -ap @&&| | |
142 | 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,, | |
143 | | | |
144 | ||
145 | data: | |
146 | ||
147 | install: all | |
148 | ||
149 | uninstall: |