]>
Commit | Line | Data |
---|---|---|
0706fb23 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
0706fb23 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
62448488 | 6 | |
0706fb23 VS |
7 | !ifndef BCCDIR |
8 | BCCDIR = $(MAKEDIR)\.. | |
62448488 JS |
9 | !endif |
10 | ||
fd9f42b6 | 11 | !include ../../build/msw/config.bcc |
0706fb23 VS |
12 | |
13 | # ------------------------------------------------------------------------- | |
14 | # Do not modify the rest of this file! | |
15 | # ------------------------------------------------------------------------- | |
16 | ||
17 | !if "$(BCCDIR)" == "\.." | |
18 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
19 | !endif | |
20 | ||
21 | ### Variables: ### | |
22 | ||
25a73439 VS |
23 | LIBDIRNAME = \ |
24 | .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
25 | OBJS = \ |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
25a73439 | 27 | SASHTEST_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \ |
250700e4 | 28 | $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
25a73439 | 29 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) \ |
250700e4 | 30 | -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \ |
bdc408c4 | 31 | -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS) |
25a73439 VS |
32 | SASHTEST_OBJECTS = \ |
33 | $(OBJS)\sashtest_sashtest.obj | |
0706fb23 VS |
34 | |
35 | ### Conditionally set variables: ### | |
36 | ||
37 | !if "$(USE_GUI)" == "0" | |
38 | PORTNAME = base | |
39 | !endif | |
40 | !if "$(USE_GUI)" == "1" | |
41 | PORTNAME = msw | |
42 | !endif | |
25a73439 VS |
43 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
44 | WXDEBUGFLAG = d | |
45 | !endif | |
46 | !if "$(DEBUG_FLAG)" == "1" | |
0706fb23 VS |
47 | WXDEBUGFLAG = d |
48 | !endif | |
49 | !if "$(SHARED)" == "1" | |
50 | WXDLLFLAG = dll | |
51 | !endif | |
52 | !if "$(UNICODE)" == "1" | |
53 | WXUNICODEFLAG = u | |
54 | !endif | |
55 | !if "$(WXUNIV)" == "1" | |
56 | WXUNIVNAME = univ | |
57 | !endif | |
25a73439 VS |
58 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
59 | __DEBUGINFO = -v | |
250700e4 | 60 | !endif |
25a73439 VS |
61 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
62 | __DEBUGINFO = -v- | |
250700e4 | 63 | !endif |
25a73439 VS |
64 | !if "$(DEBUG_INFO)" == "0" |
65 | __DEBUGINFO = -v- | |
66 | !endif | |
67 | !if "$(DEBUG_INFO)" == "1" | |
68 | __DEBUGINFO = -v | |
69 | !endif | |
70 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
0706fb23 VS |
71 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
72 | !endif | |
25a73439 VS |
73 | !if "$(DEBUG_FLAG)" == "1" |
74 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
75 | !endif | |
76 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
77 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
78 | !endif | |
79 | !if "$(DEBUG_FLAG)" == "1" | |
0706fb23 VS |
80 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ |
81 | !endif | |
82 | !if "$(SHARED)" == "1" | |
83 | __DLLFLAG_p = -DWXUSINGDLL | |
84 | !endif | |
85 | !if "$(SHARED)" == "1" | |
86 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
87 | !endif | |
25a73439 VS |
88 | !if "$(USE_GUI)" == "1" |
89 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
90 | !endif | |
91 | !if "$(USE_GUI)" == "1" | |
92 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
93 | !endif | |
94 | !if "$(USE_GUI)" == "1" | |
95 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
96 | !endif | |
250700e4 RD |
97 | !if "$(BUILD)" == "debug" |
98 | __OPTIMIZEFLAG_2 = -Od | |
99 | !endif | |
100 | !if "$(BUILD)" == "release" | |
101 | __OPTIMIZEFLAG_2 = -O2 | |
102 | !endif | |
103 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
104 | __RUNTIME_LIBS_6 = -tWR | |
105 | !endif | |
106 | !if "$(RUNTIME_LIBS)" == "static" | |
107 | __RUNTIME_LIBS_6 = | |
108 | !endif | |
109 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
110 | __RUNTIME_LIBS_7 = i | |
111 | !endif | |
112 | !if "$(RUNTIME_LIBS)" == "static" | |
113 | __RUNTIME_LIBS_7 = | |
114 | !endif | |
0706fb23 VS |
115 | !if "$(UNICODE)" == "1" |
116 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
117 | !endif | |
118 | !if "$(UNICODE)" == "1" | |
119 | __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1 | |
120 | !endif | |
121 | !if "$(MONOLITHIC)" == "0" | |
fd9f42b6 VS |
122 | __WXLIB_ADV_p = \ |
123 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib | |
124 | !endif | |
125 | !if "$(MONOLITHIC)" == "0" | |
0706fb23 VS |
126 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib |
127 | !endif | |
128 | !if "$(MONOLITHIC)" == "0" | |
250700e4 RD |
129 | __WXLIB_CORE_p = \ |
130 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
0706fb23 VS |
131 | !endif |
132 | !if "$(MONOLITHIC)" == "1" | |
250700e4 RD |
133 | __WXLIB_MONO_p = \ |
134 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
0706fb23 VS |
135 | !endif |
136 | !if "$(WXUNIV)" == "1" | |
137 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
138 | !endif | |
139 | !if "$(WXUNIV)" == "1" | |
140 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
141 | !endif | |
142 | ||
fd9f42b6 VS |
143 | MAKEARGS = -DBUILD=$(BUILD) -DCFG=$(CFG) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DWXUNIV=$(WXUNIV) |
144 | ||
0706fb23 VS |
145 | |
146 | all: $(OBJS) | |
147 | $(OBJS): | |
148 | -if not exist $(OBJS) mkdir $(OBJS) | |
149 | ||
150 | ### Targets: ### | |
151 | ||
152 | all: $(OBJS)\sashtest.exe | |
153 | ||
154 | $(OBJS)\sashtest_sashtest.obj: .\sashtest.cpp | |
155 | $(CXX) -q -c -P -o$@ $(SASHTEST_CXXFLAGS) $** | |
156 | ||
157 | $(OBJS)\sashtest_sashtest.res: .\sashtest.rc | |
25a73439 | 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$(LIBDIRNAME) -i.\..\..\src\tiff -i.\..\..\src\jpeg -i.\..\..\src\png -i.\..\..\src\zlib -i.\..\..\src\regex -i.\..\..\src\expat\lib -i. $(__DLLFLAG_p_1) $** |
0706fb23 VS |
159 | |
160 | clean: | |
161 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
162 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
163 | -if exist $(OBJS)\sashtest.exe del $(OBJS)\sashtest.exe | |
164 | ||
25a73439 VS |
165 | $(OBJS)\sashtest.exe: $(SASHTEST_OBJECTS) $(OBJS)\sashtest_sashtest.res |
166 | ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| | |
fd9f42b6 | 167 | c0w32.obj $(SASHTEST_OBJECTS),$@,, $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\sashtest_sashtest.res |
0706fb23 | 168 | | |