]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/makefile.gcc
removed src/gtk/eggtrayicon.h
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
CommitLineData
03206f17
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
03206f17
VS
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
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 20FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 22 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85 23 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
69ada15b 24 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 25 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
26FL_DEMO1_OBJECTS = \
27 $(OBJS)\fl_demo1_fl_demo1.o \
28 $(OBJS)\fl_demo1_fl_demo1_rc.o
9bfe7ad9 29FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 30 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 31 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85 32 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
69ada15b 33 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 34 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
35FL_DEMO2_OBJECTS = \
36 $(OBJS)\fl_demo2_fl_demo2.o \
37 $(OBJS)\fl_demo2_fl_demo2_rc.o
9bfe7ad9 38FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 39 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 40 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85 41 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
69ada15b 42 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 43 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
44FL_SAMPLE1_OBJECTS = \
45 $(OBJS)\fl_sample1_fl_sample1.o \
46 $(OBJS)\fl_sample1_fl_sample1_rc.o
9bfe7ad9 47FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 48 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 49 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85 50 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
69ada15b 51 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 52 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
53FL_SAMPLE2_OBJECTS = \
54 $(OBJS)\fl_sample2_fl_sample2.o \
55 $(OBJS)\fl_sample2_fl_sample2_rc.o
9bfe7ad9 56FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 57 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 58 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85 59 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
69ada15b 60 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 61 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
62FL_SAMPLE3_OBJECTS = \
63 $(OBJS)\fl_sample3_fl_sample3.o \
64 $(OBJS)\fl_sample3_fl_sample3_rc.o
03206f17
VS
65
66### Conditionally set variables: ###
67
68ifeq ($(GCC_VERSION),2.95)
69GCCFLAGS = -fvtable-thunks
70endif
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
03206f17
VS
85ifeq ($(UNICODE),1)
86WXUNICODEFLAG = u
87endif
88ifeq ($(WXUNIV),1)
89WXUNIVNAME = univ
90endif
b17c1746
DE
91ifeq ($(SHARED),1)
92WXDLLFLAG = dll
03206f17 93endif
b17c1746
DE
94ifeq ($(BUILD),debug)
95__OPTIMIZEFLAG = -O0
03206f17
VS
96endif
97ifeq ($(BUILD),release)
b17c1746 98__OPTIMIZEFLAG = -O2
03206f17 99endif
b17c1746
DE
100ifeq ($(USE_EXCEPTIONS),0)
101__EXCEPTIONSFLAG = -fno-rtti
03206f17 102endif
b17c1746
DE
103ifeq ($(USE_EXCEPTIONS),1)
104__EXCEPTIONSFLAG =
03206f17 105endif
b17c1746
DE
106ifeq ($(USE_EXCEPTIONS),0)
107__EXCEPTIONSFLAG_3 = -fno-exceptions
108endif
109ifeq ($(USE_EXCEPTIONS),1)
110__EXCEPTIONSFLAG_3 =
111endif
112ifeq ($(WXUNIV),1)
113__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114endif
115ifeq ($(WXUNIV),1)
116__WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
03206f17
VS
117endif
118ifeq ($(BUILD),debug)
119ifeq ($(DEBUG_FLAG),default)
120__DEBUG_DEFINE_p = -D__WXDEBUG__
121endif
122endif
123ifeq ($(DEBUG_FLAG),1)
124__DEBUG_DEFINE_p = -D__WXDEBUG__
125endif
126ifeq ($(BUILD),debug)
127ifeq ($(DEBUG_FLAG),default)
b17c1746 128__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
03206f17
VS
129endif
130endif
131ifeq ($(DEBUG_FLAG),1)
b17c1746
DE
132__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
133endif
134ifeq ($(UNICODE),1)
135__UNICODE_DEFINE_p = -D_UNICODE
136endif
137ifeq ($(UNICODE),1)
138__UNICODE_DEFINE_p_12 = --define _UNICODE
139endif
140ifeq ($(SHARED),0)
141LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
142endif
143ifeq ($(SHARED),1)
144LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
03206f17
VS
145endif
146ifeq ($(SHARED),1)
147__DLLFLAG_p = -DWXUSINGDLL
148endif
149ifeq ($(SHARED),1)
b17c1746 150__DLLFLAG_p_12 = --define WXUSINGDLL
03206f17 151endif
b17c1746
DE
152ifeq ($(MONOLITHIC),0)
153__WXLIB_CORE_p = \
c33fae85 154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 155endif
b17c1746 156ifeq ($(MONOLITHIC),0)
c33fae85
RN
157__WXLIB_BASE_p = \
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 159endif
b17c1746
DE
160ifeq ($(MONOLITHIC),1)
161__WXLIB_MONO_p = \
c33fae85 162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 163endif
b17c1746 164ifeq ($(USE_GUI),1)
9c2d002b 165__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
a4ad36cd 166endif
03206f17 167ifeq ($(USE_GUI),1)
9c2d002b 168__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
03206f17
VS
169endif
170ifeq ($(USE_GUI),1)
9c2d002b 171__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
03206f17 172endif
2265a2d5
VS
173ifeq ($(MSLU),1)
174__UNICOWS_LIB_p = -lunicows
175endif
b17c1746
DE
176ifeq ($(BUILD),debug)
177ifeq ($(DEBUG_INFO),default)
178__DEBUGINFO = -g
03206f17 179endif
03206f17 180endif
b17c1746
DE
181ifeq ($(BUILD),release)
182ifeq ($(DEBUG_INFO),default)
183__DEBUGINFO =
03206f17 184endif
03206f17 185endif
b17c1746
DE
186ifeq ($(DEBUG_INFO),0)
187__DEBUGINFO =
188endif
189ifeq ($(DEBUG_INFO),1)
190__DEBUGINFO = -g
03206f17
VS
191endif
192
193
194all: $(OBJS)
195$(OBJS):
196 -if not exist $(OBJS) mkdir $(OBJS)
197
198### Targets: ###
199
9d5f4fbb 200all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
03206f17 201
b17c1746
DE
202clean:
203 -if exist $(OBJS)\*.o del $(OBJS)\*.o
204 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
205 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
206 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
207 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
208 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
209
210$(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
9c2d002b 211 $(CXX) -o $@ $(FL_DEMO1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
212
213$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
9c2d002b 214 $(CXX) -o $@ $(FL_DEMO2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
215
216$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
9c2d002b 217 $(CXX) -o $@ $(FL_SAMPLE1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
218
219$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
9c2d002b 220 $(CXX) -o $@ $(FL_SAMPLE2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
221
222$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
9c2d002b 223 $(CXX) -o $@ $(FL_SAMPLE3_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
224
225data_files:
226 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
227 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
228
9d5f4fbb 229$(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
03206f17
VS
230 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
231
9d5f4fbb 232$(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
c33fae85 233 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
03206f17 234
9d5f4fbb 235$(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
03206f17
VS
236 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
237
9d5f4fbb 238$(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
c33fae85 239 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
03206f17 240
9d5f4fbb 241$(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
03206f17
VS
242 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
243
9d5f4fbb 244$(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
c33fae85 245 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
03206f17 246
9d5f4fbb 247$(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
03206f17
VS
248 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
249
9d5f4fbb 250$(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
c33fae85 251 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
03206f17 252
9d5f4fbb 253$(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
03206f17
VS
254 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
255
9d5f4fbb 256$(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
c33fae85 257 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
03206f17 258
9d5f4fbb 259.PHONY: all clean data_files