]> git.saurik.com Git - wxWidgets.git/blame - samples/font/makefile.gcc
Typos fixed and further clarification of the Python situation on Panther
[wxWidgets.git] / samples / font / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
9bfe7ad9
VS
15FONT_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)
076f10e0
VS
19FONT_OBJECTS = \
20 $(OBJS)\font_font.o \
21 $(OBJS)\font_font_rc.o
076f10e0
VS
22OBJS = \
23 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
24SETUPHDIR = \
25 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d
VS
26
27### Conditionally set variables: ###
28
250700e4
RD
29ifeq ($(GCC_VERSION),2.95)
30GCCFLAGS = -fvtable-thunks
31endif
75a0a7b7
VS
32ifeq ($(SHARED),0)
33LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
34endif
35ifeq ($(SHARED),1)
36LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
37endif
3b20263d
VS
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
076f10e0
VS
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
50WXDEBUGFLAG = d
51endif
52ifeq ($(SHARED),1)
53WXDLLFLAG = dll
54endif
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
61ifeq ($(BUILD),debug)
076f10e0
VS
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO = -g
64endif
250700e4
RD
65endif
66ifeq ($(BUILD),release)
076f10e0
VS
67ifeq ($(DEBUG_INFO),default)
68__DEBUGINFO =
69endif
70endif
71ifeq ($(DEBUG_INFO),0)
72__DEBUGINFO =
73endif
74ifeq ($(DEBUG_INFO),1)
75__DEBUGINFO = -g
250700e4
RD
76endif
77ifeq ($(BUILD),debug)
076f10e0
VS
78ifeq ($(DEBUG_FLAG),default)
79__DEBUG_DEFINE_p = -D__WXDEBUG__
80endif
81endif
82ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84endif
85ifeq ($(BUILD),debug)
076f10e0
VS
86ifeq ($(DEBUG_FLAG),default)
87__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
88endif
89endif
90ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
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
b71531ad
VZ
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
076f10e0
VS
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
250700e4
RD
120ifeq ($(BUILD),debug)
121__OPTIMIZEFLAG_2 = -O0
122endif
123ifeq ($(BUILD),release)
124__OPTIMIZEFLAG_2 = -O2
125endif
3b20263d 126ifeq ($(UNICODE),1)
ec08d395 127__UNICODE_DEFINE_p = -D_UNICODE
3b20263d
VS
128endif
129ifeq ($(UNICODE),1)
ec08d395 130__UNICODE_DEFINE_p_1 = --define _UNICODE
3b20263d 131endif
4e209a20
VS
132ifeq ($(MSLU),1)
133__UNICOWS_LIB_p = -lunicows
134endif
3b20263d
VS
135ifeq ($(MONOLITHIC),0)
136__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
137endif
138ifeq ($(MONOLITHIC),0)
076f10e0
VS
139__WXLIB_CORE_p = \
140 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
3b20263d
VS
141endif
142ifeq ($(MONOLITHIC),1)
076f10e0
VS
143__WXLIB_MONO_p = \
144 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d
VS
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)\font.exe
161
1c3a6972 162$(OBJS)\font_font.o: ./font.cpp
3b20263d
VS
163 $(CXX) -c -o $@ $(FONT_CXXFLAGS) $<
164
1c3a6972 165$(OBJS)\font_font_rc.o: ./font.rc
ec08d395 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
3b20263d
VS
167
168clean:
169 -if exist $(OBJS)\*.o del $(OBJS)\*.o
170 -if exist $(OBJS)\font.exe del $(OBJS)\font.exe
171
076f10e0 172$(OBJS)\font.exe: $(FONT_OBJECTS) $(OBJS)\font_font_rc.o
ec08d395 173 $(CXX) -o $@ $(FONT_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
3b20263d 174
250700e4 175.PHONY: all clean