]>
Commit | Line | Data |
---|---|---|
0ca4ab85 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 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
0ca4ab85 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0ca4ab85 VS |
15 | LIBDIRNAME = \ |
16 | ..\..\src\svg\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
0ca4ab85 VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
3f55f5b8 | 19 | SVGDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
0ca4ab85 VS |
20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
21 | $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(LIBDIRNAME) \ | |
22 | -I..\..\src\svg\..\..\..\src\tiff -I..\..\src\svg\..\..\..\src\jpeg \ | |
23 | -I..\..\src\svg\..\..\..\src\png -I..\..\src\svg\..\..\..\src\zlib \ | |
24 | -I..\..\src\svg\..\..\..\src\regex -I..\..\src\svg\..\..\..\src\expat\lib \ | |
25 | -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG $(CXXFLAGS) | |
0ca4ab85 VS |
26 | SVGDLL_OBJECTS = \ |
27 | $(OBJS)\svgdll_dummy.o \ | |
28 | $(OBJS)\svgdll_dcsvg.o | |
3f55f5b8 | 29 | SVGLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
0ca4ab85 VS |
30 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
31 | $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(LIBDIRNAME) \ | |
32 | -I..\..\src\svg\..\..\..\src\tiff -I..\..\src\svg\..\..\..\src\jpeg \ | |
33 | -I..\..\src\svg\..\..\..\src\png -I..\..\src\svg\..\..\..\src\zlib \ | |
34 | -I..\..\src\svg\..\..\..\src\regex -I..\..\src\svg\..\..\..\src\expat\lib \ | |
35 | -I..\..\src\svg\..\..\include $(CXXFLAGS) | |
0ca4ab85 VS |
36 | SVGLIB_OBJECTS = \ |
37 | $(OBJS)\svglib_dummy.o \ | |
38 | $(OBJS)\svglib_dcsvg.o | |
39 | ||
40 | ### Conditionally set variables: ### | |
41 | ||
42 | ifeq ($(GCC_VERSION),2.95) | |
43 | GCCFLAGS = -fvtable-thunks | |
44 | endif | |
45 | ifeq ($(USE_GUI),0) | |
46 | PORTNAME = base | |
47 | endif | |
48 | ifeq ($(USE_GUI),1) | |
49 | PORTNAME = msw | |
50 | endif | |
51 | ifeq ($(OFFICIAL_BUILD),0) | |
52 | VENDORTAG = _$(VENDOR) | |
53 | endif | |
54 | ifeq ($(OFFICIAL_BUILD),1) | |
55 | VENDORTAG = | |
56 | endif | |
57 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
58 | ifeq ($(DEBUG_FLAG),default) |
59 | WXDEBUGFLAG = d | |
60 | endif | |
61 | endif | |
62 | ifeq ($(DEBUG_FLAG),1) | |
0ca4ab85 VS |
63 | WXDEBUGFLAG = d |
64 | endif | |
65 | ifeq ($(SHARED),1) | |
66 | WXDLLFLAG = dll | |
67 | endif | |
68 | ifeq ($(UNICODE),1) | |
69 | WXUNICODEFLAG = u | |
70 | endif | |
71 | ifeq ($(WXUNIV),1) | |
72 | WXUNIVNAME = univ | |
73 | endif | |
74 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
75 | ifeq ($(DEBUG_INFO),default) |
76 | __DEBUGINFO = -g | |
77 | endif | |
0ca4ab85 VS |
78 | endif |
79 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
80 | ifeq ($(DEBUG_INFO),default) |
81 | __DEBUGINFO = | |
82 | endif | |
83 | endif | |
84 | ifeq ($(DEBUG_INFO),0) | |
85 | __DEBUGINFO = | |
86 | endif | |
87 | ifeq ($(DEBUG_INFO),1) | |
88 | __DEBUGINFO = -g | |
0ca4ab85 VS |
89 | endif |
90 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
91 | ifeq ($(DEBUG_FLAG),default) |
92 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_FLAG),1) | |
0ca4ab85 VS |
96 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
97 | endif | |
98 | ifeq ($(USE_GUI),1) | |
99 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
100 | endif | |
101 | ifeq ($(USE_GUI),1) | |
102 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
103 | endif | |
104 | ifeq ($(USE_GUI),1) | |
105 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
106 | endif | |
107 | ifeq ($(BUILD),debug) | |
108 | __OPTIMIZEFLAG = -O0 | |
109 | endif | |
110 | ifeq ($(BUILD),release) | |
111 | __OPTIMIZEFLAG = -O2 | |
112 | endif | |
113 | ifeq ($(UNICODE),1) | |
114 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
115 | endif | |
116 | ifeq ($(MONOLITHIC),0) | |
117 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
118 | endif | |
119 | ifeq ($(MONOLITHIC),0) | |
120 | __WXLIB_CORE_p = \ | |
121 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
122 | endif | |
123 | ifeq ($(MONOLITHIC),1) | |
124 | __WXLIB_MONO_p = \ | |
125 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
126 | endif | |
127 | ifeq ($(WXUNIV),1) | |
128 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
129 | endif | |
130 | ifeq ($(SHARED),1) | |
131 | __svgdll___depname = \ | |
132 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll | |
133 | endif | |
134 | ifeq ($(SHARED),0) | |
135 | __svglib___depname = \ | |
136 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a | |
137 | endif | |
138 | ||
fd9f42b6 VS |
139 | MAKEARGS = BUILD=$(BUILD) CFG=$(CFG) CPPFLAGS=$(CPPFLAGS) CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) DEBUG_FLAG=$(DEBUG_FLAG) DEBUG_INFO=$(DEBUG_INFO) GCC_VERSION=$(GCC_VERSION) LDFLAGS=$(LDFLAGS) MONOLITHIC=$(MONOLITHIC) OFFICIAL_BUILD=$(OFFICIAL_BUILD) SHARED=$(SHARED) UNICODE=$(UNICODE) USE_GUI=$(USE_GUI) VENDOR=$(VENDOR) WXUNIV=$(WXUNIV) |
140 | ||
0ca4ab85 VS |
141 | |
142 | all: $(OBJS) | |
143 | $(OBJS): | |
144 | -if not exist $(OBJS) mkdir $(OBJS) | |
145 | ||
146 | ### Targets: ### | |
147 | ||
148 | all: $(__svgdll___depname) $(__svglib___depname) | |
149 | ||
150 | $(OBJS)\svgdll_dcsvg.o: ../../src/svg\dcsvg.cpp | |
151 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $< | |
152 | ||
153 | $(OBJS)\svgdll_dummy.o: ../../src/svg\..\..\..\src\msw\dummy.cpp | |
154 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $< | |
155 | ||
156 | $(OBJS)\svglib_dcsvg.o: ../../src/svg\dcsvg.cpp | |
157 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $< | |
158 | ||
159 | $(OBJS)\svglib_dummy.o: ../../src/svg\..\..\..\src\msw\dummy.cpp | |
160 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $< | |
161 | ||
162 | clean: | |
163 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
164 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll | |
165 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a | |
166 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a | |
167 | ||
168 | ifeq ($(SHARED),1) | |
169 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) | |
3f55f5b8 | 170 | $(CXX) -shared -o $@ $(SVGDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) |
0ca4ab85 VS |
171 | endif |
172 | ||
173 | ifeq ($(SHARED),0) | |
174 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a: $(SVGLIB_OBJECTS) | |
175 | if exist $@ del $@ | |
176 | ar rcu $@ $(SVGLIB_OBJECTS) | |
177 | ranlib $@ | |
178 | endif | |
179 | ||
180 | .PHONY: all clean |