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