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