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