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