]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/richedit/makefile.gcc
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW...
[wxWidgets.git] / samples / richedit / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (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
15WX_RELEASE_NODOT = 25
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20RICHEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
24 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25RICHEDIT_OBJECTS = \
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
32
33### Conditionally set variables: ###
34
35ifeq ($(GCC_VERSION),2.95)
36GCCFLAGS = -fvtable-thunks
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 ($(UNICODE),1)
53WXUNICODEFLAG = u
54endif
55ifeq ($(WXUNIV),1)
56WXUNIVNAME = univ
57endif
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
60endif
61ifeq ($(BUILD),debug)
62__OPTIMIZEFLAG_2 = -O0
63endif
64ifeq ($(BUILD),release)
65__OPTIMIZEFLAG_2 = -O2
66endif
67ifeq ($(USE_EXCEPTIONS),0)
68__EXCEPTIONSFLAG_4 = -fno-rtti
69endif
70ifeq ($(USE_EXCEPTIONS),1)
71__EXCEPTIONSFLAG_4 =
72endif
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__
84endif
85ifeq ($(BUILD),debug)
86ifeq ($(DEBUG_FLAG),default)
87__DEBUG_DEFINE_p = -D__WXDEBUG__
88endif
89endif
90ifeq ($(DEBUG_FLAG),1)
91__DEBUG_DEFINE_p = -D__WXDEBUG__
92endif
93ifeq ($(BUILD),debug)
94ifeq ($(DEBUG_FLAG),default)
95__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
96endif
97endif
98ifeq ($(DEBUG_FLAG),1)
99__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100endif
101ifeq ($(UNICODE),1)
102__UNICODE_DEFINE_p = -D_UNICODE
103endif
104ifeq ($(UNICODE),1)
105__UNICODE_DEFINE_p_1 = --define _UNICODE
106endif
107ifeq ($(SHARED),1)
108__DLLFLAG_p = -DWXUSINGDLL
109endif
110ifeq ($(SHARED),1)
111__DLLFLAG_p_1 = --define WXUSINGDLL
112endif
113ifeq ($(MONOLITHIC),0)
114__WXLIB_CORE_p = \
115 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
116endif
117ifeq ($(MONOLITHIC),0)
118__WXLIB_BASE_p = \
119 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
120endif
121ifeq ($(MONOLITHIC),1)
122__WXLIB_MONO_p = \
123 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
124endif
125ifeq ($(USE_GUI),1)
126__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
127endif
128ifeq ($(USE_GUI),1)
129__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
130endif
131ifeq ($(USE_GUI),1)
132__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
133endif
134ifeq ($(MSLU),1)
135__UNICOWS_LIB_p = -lunicows
136endif
137ifeq ($(SHARED),0)
138LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
139endif
140ifeq ($(SHARED),1)
141LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
142endif
143ifeq ($(BUILD),debug)
144ifeq ($(DEBUG_INFO),default)
145__DEBUGINFO = -g
146endif
147endif
148ifeq ($(BUILD),release)
149ifeq ($(DEBUG_INFO),default)
150__DEBUGINFO =
151endif
152endif
153ifeq ($(DEBUG_INFO),0)
154__DEBUGINFO =
155endif
156ifeq ($(DEBUG_INFO),1)
157__DEBUGINFO = -g
158endif
159
160
161all: $(OBJS)
162$(OBJS):
163 -if not exist $(OBJS) mkdir $(OBJS)
164
165### Targets: ###
166
167all: $(OBJS)\richedit.exe data
168
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
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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
175
176data:
177 if not exist $(OBJS) mkdir $(OBJS)
178 for %%f in (wxLayout.cpp) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
179
180$(OBJS)\richedit_sample_rc.o: ./../../samples/sample.rc
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
182
183$(OBJS)\richedit_wxLayout.o: ./wxLayout.cpp
184 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
185
186$(OBJS)\richedit_kbList.o: ./kbList.cpp
187 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
188
189$(OBJS)\richedit_wxllist.o: ./wxllist.cpp
190 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
191
192$(OBJS)\richedit_wxlparser.o: ./wxlparser.cpp
193 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
194
195$(OBJS)\richedit_wxlwindow.o: ./wxlwindow.cpp
196 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
197
198.PHONY: all clean data