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