]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/makefile.gcc
SWIGged updates
[wxWidgets.git] / contrib / samples / fl / 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 FL_DEMO1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
18 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
19 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
20 FL_DEMO1_OBJECTS = \
21 $(OBJS)\fl_demo1_fl_demo1.o \
22 $(OBJS)\fl_demo1_fl_demo1_rc.o
23 FL_DEMO2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
26 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
27 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
28 FL_DEMO2_OBJECTS = \
29 $(OBJS)\fl_demo2_fl_demo2.o \
30 $(OBJS)\fl_demo2_fl_demo2_rc.o
31 FL_SAMPLE1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
32 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
33 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
34 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
35 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
36 FL_SAMPLE1_OBJECTS = \
37 $(OBJS)\fl_sample1_fl_sample1.o \
38 $(OBJS)\fl_sample1_fl_sample1_rc.o
39 FL_SAMPLE2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
40 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
41 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
42 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
43 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
44 FL_SAMPLE2_OBJECTS = \
45 $(OBJS)\fl_sample2_fl_sample2.o \
46 $(OBJS)\fl_sample2_fl_sample2_rc.o
47 FL_SAMPLE3_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
48 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
49 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
50 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
51 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
52 FL_SAMPLE3_OBJECTS = \
53 $(OBJS)\fl_sample3_fl_sample3.o \
54 $(OBJS)\fl_sample3_fl_sample3_rc.o
55 OBJS = \
56 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
57 SETUPHDIR = \
58 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
59
60 ### Conditionally set variables: ###
61
62 ifeq ($(GCC_VERSION),2.95)
63 GCCFLAGS = -fvtable-thunks
64 endif
65 ifeq ($(SHARED),0)
66 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
67 endif
68 ifeq ($(SHARED),1)
69 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
70 endif
71 ifeq ($(USE_GUI),0)
72 PORTNAME = base
73 endif
74 ifeq ($(USE_GUI),1)
75 PORTNAME = msw
76 endif
77 ifeq ($(BUILD),debug)
78 ifeq ($(DEBUG_FLAG),default)
79 WXDEBUGFLAG = d
80 endif
81 endif
82 ifeq ($(DEBUG_FLAG),1)
83 WXDEBUGFLAG = d
84 endif
85 ifeq ($(SHARED),1)
86 WXDLLFLAG = dll
87 endif
88 ifeq ($(UNICODE),1)
89 WXUNICODEFLAG = u
90 endif
91 ifeq ($(WXUNIV),1)
92 WXUNIVNAME = univ
93 endif
94 ifeq ($(BUILD),debug)
95 ifeq ($(DEBUG_INFO),default)
96 __DEBUGINFO = -g
97 endif
98 endif
99 ifeq ($(BUILD),release)
100 ifeq ($(DEBUG_INFO),default)
101 __DEBUGINFO =
102 endif
103 endif
104 ifeq ($(DEBUG_INFO),0)
105 __DEBUGINFO =
106 endif
107 ifeq ($(DEBUG_INFO),1)
108 __DEBUGINFO = -g
109 endif
110 ifeq ($(BUILD),debug)
111 ifeq ($(DEBUG_FLAG),default)
112 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 endif
114 endif
115 ifeq ($(DEBUG_FLAG),1)
116 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 endif
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p_14 = --define __WXDEBUG__
121 endif
122 endif
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p_14 = --define __WXDEBUG__
125 endif
126 ifeq ($(SHARED),1)
127 __DLLFLAG_p = -DWXUSINGDLL
128 endif
129 ifeq ($(SHARED),1)
130 __DLLFLAG_p_12 = --define WXUSINGDLL
131 endif
132 ifeq ($(USE_GUI),1)
133 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
134 endif
135 ifeq ($(USE_GUI),1)
136 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
137 endif
138 ifeq ($(USE_GUI),1)
139 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
140 endif
141 ifeq ($(BUILD),debug)
142 __OPTIMIZEFLAG = -O0
143 endif
144 ifeq ($(BUILD),release)
145 __OPTIMIZEFLAG = -O2
146 endif
147 ifeq ($(UNICODE),1)
148 __UNICODE_DEFINE_p = -D_UNICODE
149 endif
150 ifeq ($(UNICODE),1)
151 __UNICODE_DEFINE_p_13 = --define _UNICODE
152 endif
153 ifeq ($(MSLU),1)
154 __UNICOWS_LIB_p = -lunicows
155 endif
156 ifeq ($(MONOLITHIC),0)
157 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
158 endif
159 ifeq ($(MONOLITHIC),0)
160 __WXLIB_CORE_p = \
161 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
162 endif
163 ifeq ($(MONOLITHIC),1)
164 __WXLIB_MONO_p = \
165 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
166 endif
167 ifeq ($(WXUNIV),1)
168 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
169 endif
170 ifeq ($(WXUNIV),1)
171 __WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__
172 endif
173
174
175 all: $(OBJS)
176 $(OBJS):
177 -if not exist $(OBJS) mkdir $(OBJS)
178
179 ### Targets: ###
180
181 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
182
183 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
184 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
185
186 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
187 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_13) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
188
189 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
190 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
191
192 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
193 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_13) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
194
195 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
196 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
197
198 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
199 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_13) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
200
201 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
202 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
203
204 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
205 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_13) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
206
207 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
208 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
209
210 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
211 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_13) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
212
213 clean:
214 -if exist $(OBJS)\*.o del $(OBJS)\*.o
215 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
216 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
217 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
218 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
219 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
220
221 data_files:
222 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
223 for %%f in (bookmarks.bmp class_icon.bmp class_icon1.bmp copy.bmp cut.bmp file_icon.bmp folder_icon.bmp help_icon.bmp new.bmp nextmark.bmp open.bmp paste.bmp prevmark.bmp res_icon.bmp save.bmp saveall.bmp search.bmp start95_dp.bmp start95_pr.bmp tile.bmp) do if not exist $(OBJS)\bitmaps\%%f copy .\bitmaps\%%f $(OBJS)\bitmaps
224
225 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
226 $(CXX) -o $@ $(FL_DEMO1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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
227
228 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
229 $(CXX) -o $@ $(FL_DEMO2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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
230
231 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
232 $(CXX) -o $@ $(FL_SAMPLE1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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
233
234 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
235 $(CXX) -o $@ $(FL_SAMPLE2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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
236
237 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
238 $(CXX) -o $@ $(FL_SAMPLE3_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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
239
240 .PHONY: all clean data_files