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