]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/svg/makefile.gcc
fixed some VC++ projects bugs
[wxWidgets.git] / contrib / build / svg / makefile.gcc
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 include ../../../build/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 LIBDIRNAME = \
16 ..\..\src\svg\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 SVGDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
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)
26 SVGDLL_OBJECTS = \
27 $(OBJS)\svgdll_dummy.o \
28 $(OBJS)\svgdll_dcsvg.o
29 SVGLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
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)
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)
58 ifeq ($(DEBUG_FLAG),default)
59 WXDEBUGFLAG = d
60 endif
61 endif
62 ifeq ($(DEBUG_FLAG),1)
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)
75 ifeq ($(DEBUG_INFO),default)
76 __DEBUGINFO = -g
77 endif
78 endif
79 ifeq ($(BUILD),release)
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
89 endif
90 ifeq ($(BUILD),debug)
91 ifeq ($(DEBUG_FLAG),default)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
93 endif
94 endif
95 ifeq ($(DEBUG_FLAG),1)
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
139
140 all: $(OBJS)
141 $(OBJS):
142 -if not exist $(OBJS) mkdir $(OBJS)
143
144 ### Targets: ###
145
146 all: $(__svgdll___depname) $(__svglib___depname)
147
148 $(OBJS)\svgdll_dcsvg.o: ../../src/svg\dcsvg.cpp
149 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
150
151 $(OBJS)\svgdll_dummy.o: ../../src/svg\..\..\..\src\msw\dummy.cpp
152 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
153
154 $(OBJS)\svglib_dcsvg.o: ../../src/svg\dcsvg.cpp
155 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
156
157 $(OBJS)\svglib_dummy.o: ../../src/svg\..\..\..\src\msw\dummy.cpp
158 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
159
160 clean:
161 -if exist $(OBJS)\*.o del $(OBJS)\*.o
162 -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
163 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
164 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
165
166 ifeq ($(SHARED),1)
167 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS)
168 $(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)
169 endif
170
171 ifeq ($(SHARED),0)
172 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a: $(SVGLIB_OBJECTS)
173 if exist $@ del $@
174 ar rcu $@ $(SVGLIB_OBJECTS)
175 ranlib $@
176 endif
177
178 .PHONY: all clean