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