]> git.saurik.com Git - wxWidgets.git/blame - samples/richedit/makefile.gcc
The UseAntiAliasing is off by default on wxMac. Add a menu item to
[wxWidgets.git] / samples / richedit / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
c3255f5f 3# Bakefile 0.1.3 (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
25a73439
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 19RICHEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
25a73439 20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
9bfe7ad9
VS
22 $(__DLLFLAG_p) -I.\..\..\samples $(__EXCEPTIONSFLAG_4) \
23 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25a73439 24RICHEDIT_OBJECTS = \
d179e30b
VS
25 $(OBJS)\richedit_sample_rc.o \
26 $(OBJS)\richedit_wxLayout.o \
27 $(OBJS)\richedit_kbList.o \
28 $(OBJS)\richedit_wxllist.o \
29 $(OBJS)\richedit_wxlparser.o \
30 $(OBJS)\richedit_wxlwindow.o
3b20263d
VS
31
32### Conditionally set variables: ###
33
250700e4
RD
34ifeq ($(GCC_VERSION),2.95)
35GCCFLAGS = -fvtable-thunks
36endif
3b20263d
VS
37ifeq ($(USE_GUI),0)
38PORTNAME = base
39endif
40ifeq ($(USE_GUI),1)
41PORTNAME = msw
42endif
43ifeq ($(BUILD),debug)
25a73439
VS
44ifeq ($(DEBUG_FLAG),default)
45WXDEBUGFLAG = d
46endif
47endif
48ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
49WXDEBUGFLAG = d
50endif
3b20263d
VS
51ifeq ($(UNICODE),1)
52WXUNICODEFLAG = u
53endif
54ifeq ($(WXUNIV),1)
55WXUNIVNAME = univ
56endif
b17c1746
DE
57ifeq ($(SHARED),1)
58WXDLLFLAG = dll
25a73439 59endif
b17c1746
DE
60ifeq ($(BUILD),debug)
61__OPTIMIZEFLAG_2 = -O0
250700e4
RD
62endif
63ifeq ($(BUILD),release)
b17c1746 64__OPTIMIZEFLAG_2 = -O2
25a73439 65endif
b17c1746
DE
66ifeq ($(USE_EXCEPTIONS),0)
67__EXCEPTIONSFLAG_4 = -fno-rtti
25a73439 68endif
b17c1746
DE
69ifeq ($(USE_EXCEPTIONS),1)
70__EXCEPTIONSFLAG_4 =
25a73439 71endif
b17c1746
DE
72ifeq ($(USE_EXCEPTIONS),0)
73__EXCEPTIONSFLAG_5 = -fno-exceptions
74endif
75ifeq ($(USE_EXCEPTIONS),1)
76__EXCEPTIONSFLAG_5 =
77endif
78ifeq ($(WXUNIV),1)
79__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
80endif
81ifeq ($(WXUNIV),1)
82__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
83endif
84ifeq ($(BUILD),debug)
25a73439
VS
85ifeq ($(DEBUG_FLAG),default)
86__DEBUG_DEFINE_p = -D__WXDEBUG__
87endif
88endif
89ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
90__DEBUG_DEFINE_p = -D__WXDEBUG__
91endif
92ifeq ($(BUILD),debug)
25a73439
VS
93ifeq ($(DEBUG_FLAG),default)
94__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
95endif
96endif
97ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
98__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
99endif
b17c1746
DE
100ifeq ($(UNICODE),1)
101__UNICODE_DEFINE_p = -D_UNICODE
102endif
103ifeq ($(UNICODE),1)
104__UNICODE_DEFINE_p_1 = --define _UNICODE
105endif
3b20263d
VS
106ifeq ($(SHARED),1)
107__DLLFLAG_p = -DWXUSINGDLL
108endif
109ifeq ($(SHARED),1)
110__DLLFLAG_p_1 = --define WXUSINGDLL
111endif
b17c1746
DE
112ifeq ($(MONOLITHIC),0)
113__WXLIB_CORE_p = \
114 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
b71531ad 115endif
b17c1746
DE
116ifeq ($(MONOLITHIC),0)
117__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
b71531ad 118endif
b17c1746
DE
119ifeq ($(MONOLITHIC),1)
120__WXLIB_MONO_p = \
121 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
b71531ad 122endif
b17c1746
DE
123ifeq ($(USE_GUI),1)
124__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 125endif
25a73439
VS
126ifeq ($(USE_GUI),1)
127__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
128endif
129ifeq ($(USE_GUI),1)
130__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
131endif
b17c1746
DE
132ifeq ($(MSLU),1)
133__UNICOWS_LIB_p = -lunicows
250700e4 134endif
b17c1746
DE
135ifeq ($(SHARED),0)
136LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
3b20263d 137endif
b17c1746
DE
138ifeq ($(SHARED),1)
139LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
3b20263d 140endif
b17c1746
DE
141ifeq ($(BUILD),debug)
142ifeq ($(DEBUG_INFO),default)
143__DEBUGINFO = -g
4e209a20 144endif
3b20263d 145endif
b17c1746
DE
146ifeq ($(BUILD),release)
147ifeq ($(DEBUG_INFO),default)
148__DEBUGINFO =
3b20263d 149endif
3b20263d 150endif
b17c1746
DE
151ifeq ($(DEBUG_INFO),0)
152__DEBUGINFO =
3b20263d 153endif
b17c1746
DE
154ifeq ($(DEBUG_INFO),1)
155__DEBUGINFO = -g
3b20263d
VS
156endif
157
158
159all: $(OBJS)
160$(OBJS):
161 -if not exist $(OBJS) mkdir $(OBJS)
162
163### Targets: ###
164
fd3eb307 165all: $(OBJS)\richedit.exe data
3b20263d 166
b17c1746
DE
167clean:
168 -if exist $(OBJS)\*.o del $(OBJS)\*.o
169 -if exist $(OBJS)\richedit.exe del $(OBJS)\richedit.exe
170
171$(OBJS)\richedit.exe: $(RICHEDIT_OBJECTS) $(OBJS)\richedit_sample_rc.o
b92ca8cf 172 $(CXX) -o $@ $(RICHEDIT_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$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
173
174data:
175 if not exist $(OBJS) mkdir $(OBJS)
176 for %%f in (wxLayout.cpp) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
3b20263d 177
1c3a6972 178$(OBJS)\richedit_sample_rc.o: ./../../samples/sample.rc
ec08d395 179 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 180
1c3a6972 181$(OBJS)\richedit_wxLayout.o: ./wxLayout.cpp
d179e30b
VS
182 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
183
b17c1746
DE
184$(OBJS)\richedit_kbList.o: ./kbList.cpp
185 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
186
1c3a6972 187$(OBJS)\richedit_wxllist.o: ./wxllist.cpp
d179e30b
VS
188 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
189
1c3a6972 190$(OBJS)\richedit_wxlparser.o: ./wxlparser.cpp
d179e30b
VS
191 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
192
1c3a6972 193$(OBJS)\richedit_wxlwindow.o: ./wxlwindow.cpp
d179e30b
VS
194 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
195
fd3eb307 196.PHONY: all clean data