]> git.saurik.com Git - wxWidgets.git/blame - samples/richedit/makefile.gcc
removing old makefiles
[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
15LIBDIRNAME = \
16 .\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19RICHEDIT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) -I.\..\..\src\tiff \
22 -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex \
4e209a20 23 -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\samples $(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
51ifeq ($(SHARED),1)
52WXDLLFLAG = dll
53endif
54ifeq ($(UNICODE),1)
55WXUNICODEFLAG = u
56endif
57ifeq ($(WXUNIV),1)
58WXUNIVNAME = univ
59endif
60ifeq ($(BUILD),debug)
25a73439
VS
61ifeq ($(DEBUG_INFO),default)
62__DEBUGINFO = -g
63endif
250700e4
RD
64endif
65ifeq ($(BUILD),release)
25a73439
VS
66ifeq ($(DEBUG_INFO),default)
67__DEBUGINFO =
68endif
69endif
70ifeq ($(DEBUG_INFO),0)
71__DEBUGINFO =
72endif
73ifeq ($(DEBUG_INFO),1)
74__DEBUGINFO = -g
250700e4
RD
75endif
76ifeq ($(BUILD),debug)
25a73439
VS
77ifeq ($(DEBUG_FLAG),default)
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80endif
81ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
82__DEBUG_DEFINE_p = -D__WXDEBUG__
83endif
84ifeq ($(BUILD),debug)
25a73439
VS
85ifeq ($(DEBUG_FLAG),default)
86__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
87endif
88endif
89ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
90__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
91endif
92ifeq ($(SHARED),1)
93__DLLFLAG_p = -DWXUSINGDLL
94endif
95ifeq ($(SHARED),1)
96__DLLFLAG_p_1 = --define WXUSINGDLL
97endif
25a73439
VS
98ifeq ($(USE_GUI),1)
99__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
100endif
101ifeq ($(USE_GUI),1)
102__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
103endif
104ifeq ($(USE_GUI),1)
105__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
106endif
250700e4
RD
107ifeq ($(BUILD),debug)
108__OPTIMIZEFLAG_2 = -O0
109endif
110ifeq ($(BUILD),release)
111__OPTIMIZEFLAG_2 = -O2
112endif
3b20263d
VS
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
118endif
4e209a20
VS
119ifeq ($(MSLU),1)
120__UNICOWS_LIB_p = -lunicows
121endif
3b20263d
VS
122ifeq ($(MONOLITHIC),0)
123__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
124endif
125ifeq ($(MONOLITHIC),0)
25a73439
VS
126__WXLIB_CORE_p = \
127 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
3b20263d
VS
128endif
129ifeq ($(MONOLITHIC),1)
25a73439
VS
130__WXLIB_MONO_p = \
131 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d
VS
132endif
133ifeq ($(WXUNIV),1)
134__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
135endif
136ifeq ($(WXUNIV),1)
137__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
138endif
139
140
141all: $(OBJS)
142$(OBJS):
143 -if not exist $(OBJS) mkdir $(OBJS)
144
145### Targets: ###
146
147all: $(OBJS)\richedit.exe
148
d179e30b 149$(OBJS)\richedit_kbList.o: .\kbList.cpp
3b20263d
VS
150 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
151
d179e30b 152$(OBJS)\richedit_sample_rc.o: .\..\..\samples\sample.rc
4e209a20 153 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 $(LIBDIRNAME) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_1) --include-dir ../../samples
3b20263d 154
d179e30b
VS
155$(OBJS)\richedit_wxLayout.o: .\wxLayout.cpp
156 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
157
158$(OBJS)\richedit_wxllist.o: .\wxllist.cpp
159 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
160
161$(OBJS)\richedit_wxlparser.o: .\wxlparser.cpp
162 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
163
164$(OBJS)\richedit_wxlwindow.o: .\wxlwindow.cpp
165 $(CXX) -c -o $@ $(RICHEDIT_CXXFLAGS) $<
166
3b20263d
VS
167clean:
168 -if exist $(OBJS)\*.o del $(OBJS)\*.o
169 -if exist $(OBJS)\richedit.exe del $(OBJS)\richedit.exe
170
d179e30b 171$(OBJS)\richedit.exe: $(RICHEDIT_OBJECTS) $(OBJS)\richedit_sample_rc.o
4e209a20 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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d 173
250700e4 174.PHONY: all clean