]>
Commit | Line | Data |
---|---|---|
cecc483e 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 | !ifndef BCCDIR | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
11 | !include ../../../build/config.bcc | |
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 | ||
23 | OBJS = \ | |
24 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
25 | WXRC_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGFLAG) \ | |
26 | $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
27 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
28 | -I.\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) \ | |
29 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
bdc408c4 VS |
30 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ |
31 | $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CXXFLAGS) | |
cecc483e VS |
32 | |
33 | ### Conditionally set variables: ### | |
34 | ||
35 | !if "$(USE_GUI)" == "0" | |
36 | PORTNAME = base | |
37 | !endif | |
38 | !if "$(USE_GUI)" == "1" | |
39 | PORTNAME = msw | |
40 | !endif | |
41 | !if "$(BUILD)" == "debug" | |
42 | WXDEBUGFLAG = d | |
43 | !endif | |
44 | !if "$(SHARED)" == "1" | |
45 | WXDLLFLAG = dll | |
46 | !endif | |
47 | !if "$(UNICODE)" == "1" | |
48 | WXUNICODEFLAG = u | |
49 | !endif | |
50 | !if "$(WXUNIV)" == "1" | |
51 | WXUNIVNAME = univ | |
52 | !endif | |
53 | !if "$(BUILD)" == "debug" | |
54 | __DEBUGFLAG = -v | |
55 | !endif | |
56 | !if "$(BUILD)" == "release" | |
57 | __DEBUGFLAG = -v- | |
58 | !endif | |
59 | !if "$(BUILD)" == "debug" | |
60 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
61 | !endif | |
62 | !if "$(SHARED)" == "1" | |
63 | __DLLFLAG_p = -DWXUSINGDLL | |
64 | !endif | |
65 | !if "$(BUILD)" == "debug" | |
66 | __OPTIMIZEFLAG_2 = -Od | |
67 | !endif | |
68 | !if "$(BUILD)" == "release" | |
69 | __OPTIMIZEFLAG_2 = -O2 | |
70 | !endif | |
71 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
72 | __RUNTIME_LIBS_6 = -tWR | |
73 | !endif | |
74 | !if "$(RUNTIME_LIBS)" == "static" | |
75 | __RUNTIME_LIBS_6 = | |
76 | !endif | |
77 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
78 | __RUNTIME_LIBS_7 = i | |
79 | !endif | |
80 | !if "$(RUNTIME_LIBS)" == "static" | |
81 | __RUNTIME_LIBS_7 = | |
82 | !endif | |
83 | !if "$(UNICODE)" == "1" | |
84 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
85 | !endif | |
86 | !if "$(MONOLITHIC)" == "0" | |
87 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
88 | !endif | |
89 | !if "$(MONOLITHIC)" == "1" | |
90 | __WXLIB_MONO_p = \ | |
91 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
92 | !endif | |
93 | !if "$(MONOLITHIC)" == "0" | |
94 | __WXLIB_XML_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml.lib | |
95 | !endif | |
96 | !if "$(WXUNIV)" == "1" | |
97 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
98 | !endif | |
99 | ||
100 | ||
101 | all: $(OBJS) | |
102 | $(OBJS): | |
103 | -if not exist $(OBJS) mkdir $(OBJS) | |
104 | ||
105 | ### Targets: ### | |
106 | ||
107 | all: $(OBJS)\wxrc.exe | |
108 | ||
109 | $(OBJS)\wxrc_wxrc.obj: .\wxrc.cpp | |
110 | $(CXX) -q -c -P -o$@ $(WXRC_CXXFLAGS) $** | |
111 | ||
112 | clean: | |
113 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
114 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
115 | -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe | |
116 | ||
117 | $(OBJS)\wxrc.exe: $(OBJS)\wxrc_wxrc.obj | |
118 | ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGFLAG) -L.\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -ap @&&| | |
119 | c0x32.obj $(OBJS)\wxrc_wxrc.obj,$@,, $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, | |
120 | | |