]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/svg/makefile.bcc
807f1155c73efecb9b35884ff0140f5b60d53b5b
[wxWidgets.git] / contrib / build / svg / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 SVGDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) \
31 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG -Hu \
32 -H=$(OBJS)\wxprec_svgdll.csm $(CPPFLAGS) $(CXXFLAGS)
33 SVGDLL_OBJECTS = \
34 $(OBJS)\svgdll_dummy.obj \
35 $(OBJS)\svgdll_dcsvg.obj
36 SVGLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
37 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) \
39 -I..\..\src\svg\..\..\include -Hu -H=$(OBJS)\wxprec_svglib.csm $(CPPFLAGS) \
40 $(CXXFLAGS)
41 SVGLIB_OBJECTS = \
42 $(OBJS)\svglib_dummy.obj \
43 $(OBJS)\svglib_dcsvg.obj
44
45 ### Conditionally set variables: ###
46
47 !if "$(USE_GUI)" == "0"
48 PORTNAME = base
49 !endif
50 !if "$(USE_GUI)" == "1"
51 PORTNAME = msw
52 !endif
53 !if "$(OFFICIAL_BUILD)" == "0"
54 VENDORTAG = _$(VENDOR)
55 !endif
56 !if "$(OFFICIAL_BUILD)" == "1"
57 VENDORTAG =
58 !endif
59 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
60 WXDEBUGFLAG = d
61 !endif
62 !if "$(DEBUG_FLAG)" == "1"
63 WXDEBUGFLAG = d
64 !endif
65 !if "$(UNICODE)" == "1"
66 WXUNICODEFLAG = u
67 !endif
68 !if "$(WXUNIV)" == "1"
69 WXUNIVNAME = univ
70 !endif
71 !if "$(SHARED)" == "1"
72 WXDLLFLAG = dll
73 !endif
74 !if "$(SHARED)" == "1"
75 __svgdll___depname = \
76 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll
77 !endif
78 !if "$(RUNTIME_LIBS)" == "dynamic"
79 __RUNTIME_LIBS_8 = i
80 !endif
81 !if "$(RUNTIME_LIBS)" == "static"
82 __RUNTIME_LIBS_8 =
83 !endif
84 !if "$(MONOLITHIC)" == "1"
85 __WXLIB_MONO_p = \
86 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
87 !endif
88 !if "$(USE_GUI)" == "1"
89 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
90 !endif
91 !if "$(USE_GUI)" == "1"
92 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
93 !endif
94 !if "$(USE_GUI)" == "1"
95 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
96 !endif
97 !if "$(MSLU)" == "1"
98 __UNICOWS_LIB_p = unicows.lib
99 !endif
100 !if "$(MONOLITHIC)" == "0"
101 __WXLIB_CORE_p = \
102 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
103 !endif
104 !if "$(MONOLITHIC)" == "0"
105 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
106 !endif
107 !if "$(SHARED)" == "0"
108 __svglib___depname = \
109 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
110 !endif
111 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
112 __DEBUGINFO = -v
113 !endif
114 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
115 __DEBUGINFO = -v-
116 !endif
117 !if "$(DEBUG_INFO)" == "0"
118 __DEBUGINFO = -v-
119 !endif
120 !if "$(DEBUG_INFO)" == "1"
121 __DEBUGINFO = -v
122 !endif
123 !if "$(BUILD)" == "debug"
124 __OPTIMIZEFLAG = -Od
125 !endif
126 !if "$(BUILD)" == "release"
127 __OPTIMIZEFLAG = -O2
128 !endif
129 !if "$(RUNTIME_LIBS)" == "dynamic"
130 __RUNTIME_LIBS = -tWR
131 !endif
132 !if "$(RUNTIME_LIBS)" == "static"
133 __RUNTIME_LIBS =
134 !endif
135 !if "$(WXUNIV)" == "1"
136 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
137 !endif
138 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
139 __DEBUG_DEFINE_p = -D__WXDEBUG__
140 !endif
141 !if "$(DEBUG_FLAG)" == "1"
142 __DEBUG_DEFINE_p = -D__WXDEBUG__
143 !endif
144 !if "$(UNICODE)" == "1"
145 __UNICODE_DEFINE_p = -D_UNICODE
146 !endif
147 !if "$(SHARED)" == "0"
148 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\bcc_lib$(CFG)
149 !endif
150 !if "$(SHARED)" == "1"
151 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\bcc_dll$(CFG)
152 !endif
153
154
155 all: $(OBJS)
156 $(OBJS):
157 -if not exist $(OBJS) mkdir $(OBJS)
158
159 ### Targets: ###
160
161 all: $(__svgdll___depname) $(__svglib___depname)
162
163 clean:
164 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
165 -if exist $(OBJS)\*.res del $(OBJS)\*.res
166 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll
167 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).tds
168 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilc
169 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ild
170 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilf
171 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ils
172 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
173 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
174
175 !if "$(SHARED)" == "1"
176 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll: $(OBJS)\svgdll_dummy.obj $(SVGDLL_OBJECTS)
177 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
178 c0d32.obj $(SVGDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_8).lib,,
179 |
180 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg $@
181 !endif
182
183 !if "$(SHARED)" == "0"
184 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib: $(OBJS)\svglib_dummy.obj $(SVGLIB_OBJECTS)
185 if exist $@ del $@
186 tlib /a /p4096 $@ @&&|
187 $(SVGLIB_OBJECTS)
188 |
189 !endif
190
191 $(OBJS)\svgdll_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
192 $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) -H $**
193
194 $(OBJS)\svgdll_dcsvg.obj: ../../src/svg\dcsvg.cpp
195 $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) $**
196
197 $(OBJS)\svglib_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
198 $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) -H $**
199
200 $(OBJS)\svglib_dcsvg.obj: ../../src/svg\dcsvg.cpp
201 $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) $**