]>
Commit | Line | Data |
---|---|---|
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 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
25a73439 VS |
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) \ | |
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 | 22 | RICHEDIT_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 |
29 | SETUPHDIR = \ |
30 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
3b20263d VS |
31 | |
32 | ### Conditionally set variables: ### | |
33 | ||
250700e4 RD |
34 | ifeq ($(GCC_VERSION),2.95) |
35 | GCCFLAGS = -fvtable-thunks | |
36 | endif | |
75a0a7b7 VS |
37 | ifeq ($(SHARED),0) |
38 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
39 | endif | |
40 | ifeq ($(SHARED),1) | |
41 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
42 | endif | |
3b20263d VS |
43 | ifeq ($(USE_GUI),0) |
44 | PORTNAME = base | |
45 | endif | |
46 | ifeq ($(USE_GUI),1) | |
47 | PORTNAME = msw | |
48 | endif | |
49 | ifeq ($(BUILD),debug) | |
25a73439 VS |
50 | ifeq ($(DEBUG_FLAG),default) |
51 | WXDEBUGFLAG = d | |
52 | endif | |
53 | endif | |
54 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
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) | |
25a73439 VS |
67 | ifeq ($(DEBUG_INFO),default) |
68 | __DEBUGINFO = -g | |
69 | endif | |
250700e4 RD |
70 | endif |
71 | ifeq ($(BUILD),release) | |
25a73439 VS |
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 | |
250700e4 RD |
81 | endif |
82 | ifeq ($(BUILD),debug) | |
25a73439 VS |
83 | ifeq ($(DEBUG_FLAG),default) |
84 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
85 | endif | |
86 | endif | |
87 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
88 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
89 | endif | |
90 | ifeq ($(BUILD),debug) | |
25a73439 VS |
91 | ifeq ($(DEBUG_FLAG),default) |
92 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
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 | |
b71531ad VZ |
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 | |
25a73439 VS |
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 | |
250700e4 RD |
125 | ifeq ($(BUILD),debug) |
126 | __OPTIMIZEFLAG_2 = -O0 | |
127 | endif | |
128 | ifeq ($(BUILD),release) | |
129 | __OPTIMIZEFLAG_2 = -O2 | |
130 | endif | |
3b20263d | 131 | ifeq ($(UNICODE),1) |
fd3eb307 | 132 | __UNICODE_DEFINE_p = -D_UNICODE |
3b20263d VS |
133 | endif |
134 | ifeq ($(UNICODE),1) | |
fd3eb307 | 135 | __UNICODE_DEFINE_p_1 = --define _UNICODE |
3b20263d | 136 | endif |
4e209a20 VS |
137 | ifeq ($(MSLU),1) |
138 | __UNICOWS_LIB_p = -lunicows | |
139 | endif | |
3b20263d VS |
140 | ifeq ($(MONOLITHIC),0) |
141 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
142 | endif | |
143 | ifeq ($(MONOLITHIC),0) | |
25a73439 VS |
144 | __WXLIB_CORE_p = \ |
145 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
3b20263d VS |
146 | endif |
147 | ifeq ($(MONOLITHIC),1) | |
25a73439 VS |
148 | __WXLIB_MONO_p = \ |
149 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
3b20263d VS |
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 | ||
fd3eb307 | 165 | all: $(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 |
185 | clean: |
186 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
187 | -if exist $(OBJS)\richedit.exe del $(OBJS)\richedit.exe | |
188 | ||
fd3eb307 VS |
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 | ||
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 |