]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/image/makefile.gcc
Applied patch [ 853031 ] Japanese po file
[wxWidgets.git] / samples / image / makefile.gcc
... / ...
CommitLineData
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
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15IMAGE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
16 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
17 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
18 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
19IMAGE_OBJECTS = \
20 $(OBJS)\image_image.o \
21 $(OBJS)\image_image_rc.o
22OBJS = \
23 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
24SETUPHDIR = \
25 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
26
27### Conditionally set variables: ###
28
29ifeq ($(GCC_VERSION),2.95)
30GCCFLAGS = -fvtable-thunks
31endif
32ifeq ($(SHARED),0)
33LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
34endif
35ifeq ($(SHARED),1)
36LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
37endif
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
50WXDEBUGFLAG = d
51endif
52ifeq ($(SHARED),1)
53WXDLLFLAG = dll
54endif
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
61ifeq ($(BUILD),debug)
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO = -g
64endif
65endif
66ifeq ($(BUILD),release)
67ifeq ($(DEBUG_INFO),default)
68__DEBUGINFO =
69endif
70endif
71ifeq ($(DEBUG_INFO),0)
72__DEBUGINFO =
73endif
74ifeq ($(DEBUG_INFO),1)
75__DEBUGINFO = -g
76endif
77ifeq ($(BUILD),debug)
78ifeq ($(DEBUG_FLAG),default)
79__DEBUG_DEFINE_p = -D__WXDEBUG__
80endif
81endif
82ifeq ($(DEBUG_FLAG),1)
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84endif
85ifeq ($(BUILD),debug)
86ifeq ($(DEBUG_FLAG),default)
87__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
88endif
89endif
90ifeq ($(DEBUG_FLAG),1)
91__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
92endif
93ifeq ($(SHARED),1)
94__DLLFLAG_p = -DWXUSINGDLL
95endif
96ifeq ($(SHARED),1)
97__DLLFLAG_p_1 = --define WXUSINGDLL
98endif
99ifeq ($(USE_EXCEPTIONS),0)
100__EXCEPTIONSFLAG_4 = -fno-rtti
101endif
102ifeq ($(USE_EXCEPTIONS),1)
103__EXCEPTIONSFLAG_4 =
104endif
105ifeq ($(USE_EXCEPTIONS),0)
106__EXCEPTIONSFLAG_5 = -fno-exceptions
107endif
108ifeq ($(USE_EXCEPTIONS),1)
109__EXCEPTIONSFLAG_5 =
110endif
111ifeq ($(USE_GUI),1)
112__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
113endif
114ifeq ($(USE_GUI),1)
115__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
116endif
117ifeq ($(USE_GUI),1)
118__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
119endif
120ifeq ($(BUILD),debug)
121__OPTIMIZEFLAG_2 = -O0
122endif
123ifeq ($(BUILD),release)
124__OPTIMIZEFLAG_2 = -O2
125endif
126ifeq ($(UNICODE),1)
127__UNICODE_DEFINE_p = -D_UNICODE
128endif
129ifeq ($(UNICODE),1)
130__UNICODE_DEFINE_p_1 = --define _UNICODE
131endif
132ifeq ($(MSLU),1)
133__UNICOWS_LIB_p = -lunicows
134endif
135ifeq ($(MONOLITHIC),0)
136__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
137endif
138ifeq ($(MONOLITHIC),0)
139__WXLIB_CORE_p = \
140 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
141endif
142ifeq ($(MONOLITHIC),1)
143__WXLIB_MONO_p = \
144 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
145endif
146ifeq ($(WXUNIV),1)
147__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
148endif
149ifeq ($(WXUNIV),1)
150__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
151endif
152
153
154all: $(OBJS)
155$(OBJS):
156 -if not exist $(OBJS) mkdir $(OBJS)
157
158### Targets: ###
159
160all: $(OBJS)\image.exe data
161
162$(OBJS)\image_image.o: ./image.cpp
163 $(CXX) -c -o $@ $(IMAGE_CXXFLAGS) $<
164
165$(OBJS)\image_image_rc.o: ./image.rc
166 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
167
168clean:
169 -if exist $(OBJS)\*.o del $(OBJS)\*.o
170 -if exist $(OBJS)\image.exe del $(OBJS)\image.exe
171
172data:
173 if not exist $(OBJS) mkdir $(OBJS)
174 for %%f in (horse.png horse.jpg horse.bmp horse.gif horse.pcx horse.pnm horse.tif horse.xpm horse.cur horse.ico horse3.ani smile.xbm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
175
176$(OBJS)\image.exe: $(IMAGE_OBJECTS) $(OBJS)\image_image_rc.o
177 $(CXX) -o $@ $(IMAGE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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
178
179.PHONY: all clean data