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