]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/makefile.gcc
SWIGged updates
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
CommitLineData
03206f17
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
03206f17
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15FL_DEMO1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
17 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
18 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
19 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
03206f17
VS
20FL_DEMO1_OBJECTS = \
21 $(OBJS)\fl_demo1_fl_demo1.o \
22 $(OBJS)\fl_demo1_fl_demo1_rc.o
23FL_DEMO2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
25 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
26 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
27 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
03206f17
VS
28FL_DEMO2_OBJECTS = \
29 $(OBJS)\fl_demo2_fl_demo2.o \
30 $(OBJS)\fl_demo2_fl_demo2_rc.o
31FL_SAMPLE1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
32 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
33 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
34 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
35 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
03206f17
VS
36FL_SAMPLE1_OBJECTS = \
37 $(OBJS)\fl_sample1_fl_sample1.o \
38 $(OBJS)\fl_sample1_fl_sample1_rc.o
39FL_SAMPLE2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
40 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
41 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
42 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
43 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
03206f17
VS
44FL_SAMPLE2_OBJECTS = \
45 $(OBJS)\fl_sample2_fl_sample2.o \
46 $(OBJS)\fl_sample2_fl_sample2_rc.o
47FL_SAMPLE3_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
48 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
49 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
50 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
51 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
03206f17
VS
52FL_SAMPLE3_OBJECTS = \
53 $(OBJS)\fl_sample3_fl_sample3.o \
54 $(OBJS)\fl_sample3_fl_sample3_rc.o
03206f17
VS
55OBJS = \
56 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
57SETUPHDIR = \
58 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
03206f17
VS
59
60### Conditionally set variables: ###
61
62ifeq ($(GCC_VERSION),2.95)
63GCCFLAGS = -fvtable-thunks
64endif
75a0a7b7
VS
65ifeq ($(SHARED),0)
66LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
67endif
68ifeq ($(SHARED),1)
69LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
70endif
03206f17
VS
71ifeq ($(USE_GUI),0)
72PORTNAME = base
73endif
74ifeq ($(USE_GUI),1)
75PORTNAME = msw
76endif
77ifeq ($(BUILD),debug)
78ifeq ($(DEBUG_FLAG),default)
79WXDEBUGFLAG = d
80endif
81endif
82ifeq ($(DEBUG_FLAG),1)
83WXDEBUGFLAG = d
84endif
85ifeq ($(SHARED),1)
86WXDLLFLAG = dll
87endif
88ifeq ($(UNICODE),1)
89WXUNICODEFLAG = u
90endif
91ifeq ($(WXUNIV),1)
92WXUNIVNAME = univ
93endif
94ifeq ($(BUILD),debug)
95ifeq ($(DEBUG_INFO),default)
96__DEBUGINFO = -g
97endif
98endif
99ifeq ($(BUILD),release)
100ifeq ($(DEBUG_INFO),default)
101__DEBUGINFO =
102endif
103endif
104ifeq ($(DEBUG_INFO),0)
105__DEBUGINFO =
106endif
107ifeq ($(DEBUG_INFO),1)
108__DEBUGINFO = -g
109endif
110ifeq ($(BUILD),debug)
111ifeq ($(DEBUG_FLAG),default)
112__DEBUG_DEFINE_p = -D__WXDEBUG__
113endif
114endif
115ifeq ($(DEBUG_FLAG),1)
116__DEBUG_DEFINE_p = -D__WXDEBUG__
117endif
118ifeq ($(BUILD),debug)
119ifeq ($(DEBUG_FLAG),default)
120__DEBUG_DEFINE_p_14 = --define __WXDEBUG__
121endif
122endif
123ifeq ($(DEBUG_FLAG),1)
124__DEBUG_DEFINE_p_14 = --define __WXDEBUG__
125endif
126ifeq ($(SHARED),1)
127__DLLFLAG_p = -DWXUSINGDLL
128endif
129ifeq ($(SHARED),1)
130__DLLFLAG_p_12 = --define WXUSINGDLL
131endif
132ifeq ($(USE_GUI),1)
133__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
134endif
135ifeq ($(USE_GUI),1)
136__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
137endif
138ifeq ($(USE_GUI),1)
139__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
140endif
141ifeq ($(BUILD),debug)
142__OPTIMIZEFLAG = -O0
143endif
144ifeq ($(BUILD),release)
145__OPTIMIZEFLAG = -O2
146endif
147ifeq ($(UNICODE),1)
ec08d395 148__UNICODE_DEFINE_p = -D_UNICODE
03206f17
VS
149endif
150ifeq ($(UNICODE),1)
ec08d395 151__UNICODE_DEFINE_p_13 = --define _UNICODE
03206f17 152endif
2265a2d5
VS
153ifeq ($(MSLU),1)
154__UNICOWS_LIB_p = -lunicows
155endif
03206f17
VS
156ifeq ($(MONOLITHIC),0)
157__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
158endif
159ifeq ($(MONOLITHIC),0)
160__WXLIB_CORE_p = \
161 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
162endif
163ifeq ($(MONOLITHIC),1)
164__WXLIB_MONO_p = \
165 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
166endif
167ifeq ($(WXUNIV),1)
168__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
169endif
170ifeq ($(WXUNIV),1)
171__WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__
172endif
173
174
175all: $(OBJS)
176$(OBJS):
177 -if not exist $(OBJS) mkdir $(OBJS)
178
179### Targets: ###
180
9d5f4fbb 181all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
03206f17 182
9d5f4fbb 183$(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
03206f17
VS
184 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
185
9d5f4fbb 186$(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
ec08d395 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/"
03206f17 188
9d5f4fbb 189$(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
03206f17
VS
190 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
191
9d5f4fbb 192$(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
ec08d395 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/"
03206f17 194
9d5f4fbb 195$(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
03206f17
VS
196 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
197
9d5f4fbb 198$(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
ec08d395 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/"
03206f17 200
9d5f4fbb 201$(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
03206f17
VS
202 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
203
9d5f4fbb 204$(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
ec08d395 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/"
03206f17 206
9d5f4fbb 207$(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
03206f17
VS
208 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
209
9d5f4fbb 210$(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
ec08d395 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/"
03206f17
VS
212
213clean:
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
9d5f4fbb
VS
221data_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
03206f17 225$(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
ec08d395 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
03206f17
VS
227
228$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
ec08d395 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
03206f17
VS
230
231$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
ec08d395 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
03206f17
VS
233
234$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
ec08d395 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
03206f17
VS
236
237$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
ec08d395 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
03206f17 239
9d5f4fbb 240.PHONY: all clean data_files