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