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