]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/plot/makefile.gcc
don't call SelectObject() twice in SetPen() (slow!); don't do anything if setting...
[wxWidgets.git] / contrib / build / plot / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 PLOTDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -Wall \
22 -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
24 PLOTDLL_OBJECTS = \
25 $(OBJS)\plotdll_dummy.o \
26 $(OBJS)\plotdll_plot.o
27 PLOTLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
28 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
29 -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -Wall \
30 -I..\..\src\plot\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
31 $(CPPFLAGS) $(CXXFLAGS)
32 PLOTLIB_OBJECTS = \
33 $(OBJS)\plotlib_dummy.o \
34 $(OBJS)\plotlib_plot.o
35
36 ### Conditionally set variables: ###
37
38 ifeq ($(GCC_VERSION),2.95)
39 GCCFLAGS = -fvtable-thunks
40 endif
41 ifeq ($(USE_GUI),0)
42 PORTNAME = base
43 endif
44 ifeq ($(USE_GUI),1)
45 PORTNAME = msw
46 endif
47 ifeq ($(OFFICIAL_BUILD),0)
48 VENDORTAG = _$(VENDOR)
49 endif
50 ifeq ($(OFFICIAL_BUILD),1)
51 VENDORTAG =
52 endif
53 ifeq ($(BUILD),debug)
54 ifeq ($(DEBUG_FLAG),default)
55 WXDEBUGFLAG = d
56 endif
57 endif
58 ifeq ($(DEBUG_FLAG),1)
59 WXDEBUGFLAG = d
60 endif
61 ifeq ($(UNICODE),1)
62 WXUNICODEFLAG = u
63 endif
64 ifeq ($(WXUNIV),1)
65 WXUNIVNAME = univ
66 endif
67 ifeq ($(SHARED),1)
68 WXDLLFLAG = dll
69 endif
70 ifeq ($(SHARED),1)
71 __plotdll___depname = \
72 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll
73 endif
74 ifeq ($(MONOLITHIC),1)
75 __WXLIB_MONO_p = \
76 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
77 endif
78 ifeq ($(USE_GUI),1)
79 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
80 endif
81 ifeq ($(USE_GUI),1)
82 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
83 endif
84 ifeq ($(USE_GUI),1)
85 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
86 endif
87 ifeq ($(MSLU),1)
88 __UNICOWS_LIB_p = -lunicows
89 endif
90 ifeq ($(MONOLITHIC),0)
91 __WXLIB_CORE_p = \
92 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
93 endif
94 ifeq ($(MONOLITHIC),0)
95 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
96 endif
97 ifeq ($(SHARED),0)
98 __plotlib___depname = \
99 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a
100 endif
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_INFO),default)
103 __DEBUGINFO = -g
104 endif
105 endif
106 ifeq ($(BUILD),release)
107 ifeq ($(DEBUG_INFO),default)
108 __DEBUGINFO =
109 endif
110 endif
111 ifeq ($(DEBUG_INFO),0)
112 __DEBUGINFO =
113 endif
114 ifeq ($(DEBUG_INFO),1)
115 __DEBUGINFO = -g
116 endif
117 ifeq ($(BUILD),debug)
118 __OPTIMIZEFLAG = -O0
119 endif
120 ifeq ($(BUILD),release)
121 __OPTIMIZEFLAG = -O2
122 endif
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONSFLAG = -fno-rtti
125 endif
126 ifeq ($(USE_EXCEPTIONS),1)
127 __EXCEPTIONSFLAG =
128 endif
129 ifeq ($(USE_EXCEPTIONS),0)
130 __EXCEPTIONSFLAG_0 = -fno-exceptions
131 endif
132 ifeq ($(USE_EXCEPTIONS),1)
133 __EXCEPTIONSFLAG_0 =
134 endif
135 ifeq ($(WXUNIV),1)
136 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
137 endif
138 ifeq ($(BUILD),debug)
139 ifeq ($(DEBUG_FLAG),default)
140 __DEBUG_DEFINE_p = -D__WXDEBUG__
141 endif
142 endif
143 ifeq ($(DEBUG_FLAG),1)
144 __DEBUG_DEFINE_p = -D__WXDEBUG__
145 endif
146 ifeq ($(UNICODE),1)
147 __UNICODE_DEFINE_p = -D_UNICODE
148 endif
149 ifeq ($(SHARED),0)
150 LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_lib$(CFG)
151 endif
152 ifeq ($(SHARED),1)
153 LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_dll$(CFG)
154 endif
155
156
157 all: $(OBJS)
158 $(OBJS):
159 -if not exist $(OBJS) mkdir $(OBJS)
160
161 ### Targets: ###
162
163 all: $(__plotdll___depname) $(__plotlib___depname)
164
165 clean:
166 -if exist $(OBJS)\*.o del $(OBJS)\*.o
167 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(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)251$(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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__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 $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
184 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
185
186 $(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
187 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
188
189 $(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
190 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
191
192 $(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
193 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
194
195 .PHONY: all clean