]>
Commit | Line | Data |
---|---|---|
cecc483e VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
7379e476 | 3 | # Bakefile 0.2.2 (http://bakefile.sourceforge.net) |
cecc483e VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
c33fae85 | 7 | include ../../build/msw/config.gcc |
cecc483e VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
ae4ccf12 | 16 | WX_RELEASE_NODOT = 29 |
7379e476 | 17 | COMPILER_PREFIX = gcc |
3f55f5b8 | 18 | OBJS = \ |
7379e476 VZ |
19 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
20 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
75a0a7b7 VS |
21 | SETUPHDIR = \ |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
23 | WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \ |
24 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
25 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
3abcf424 RD |
26 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \ |
27 | -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \ | |
28 | $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
29 | $(CXXFLAGS) | |
3f55f5b8 VS |
30 | WXRC_OBJECTS = \ |
31 | $(OBJS)\wxrc_wxrc.o | |
cecc483e VS |
32 | |
33 | ### Conditionally set variables: ### | |
34 | ||
35 | ifeq ($(GCC_VERSION),2.95) | |
36 | GCCFLAGS = -fvtable-thunks | |
37 | endif | |
38 | ifeq ($(USE_GUI),0) | |
39 | PORTNAME = base | |
40 | endif | |
41 | ifeq ($(USE_GUI),1) | |
42 | PORTNAME = msw | |
43 | endif | |
44 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
45 | ifeq ($(DEBUG_FLAG),default) |
46 | WXDEBUGFLAG = d | |
47 | endif | |
48 | endif | |
49 | ifeq ($(DEBUG_FLAG),1) | |
cecc483e VS |
50 | WXDEBUGFLAG = d |
51 | endif | |
cecc483e VS |
52 | ifeq ($(UNICODE),1) |
53 | WXUNICODEFLAG = u | |
54 | endif | |
55 | ifeq ($(WXUNIV),1) | |
56 | WXUNIVNAME = univ | |
57 | endif | |
b17c1746 DE |
58 | ifeq ($(SHARED),1) |
59 | WXDLLFLAG = dll | |
3f55f5b8 | 60 | endif |
162a956b JS |
61 | ifeq ($(SHARED),0) |
62 | LIBTYPE_SUFFIX = lib | |
63 | endif | |
64 | ifeq ($(SHARED),1) | |
65 | LIBTYPE_SUFFIX = dll | |
66 | endif | |
dd65d8c8 RN |
67 | ifeq ($(MONOLITHIC),0) |
68 | EXTRALIBS_FOR_BASE = | |
69 | endif | |
70 | ifeq ($(MONOLITHIC),1) | |
71 | EXTRALIBS_FOR_BASE = | |
72 | endif | |
d2ec8d84 VS |
73 | ifeq ($(USE_XRC),1) |
74 | __wxrc___depname = $(OBJS)\wxrc.exe | |
75 | endif | |
b17c1746 DE |
76 | ifeq ($(BUILD),debug) |
77 | __OPTIMIZEFLAG_2 = -O0 | |
cecc483e VS |
78 | endif |
79 | ifeq ($(BUILD),release) | |
b17c1746 | 80 | __OPTIMIZEFLAG_2 = -O2 |
3f55f5b8 | 81 | endif |
8c9f8f91 JS |
82 | ifeq ($(USE_RTTI),0) |
83 | __RTTIFLAG_5 = -fno-rtti | |
3f55f5b8 | 84 | endif |
8c9f8f91 JS |
85 | ifeq ($(USE_RTTI),1) |
86 | __RTTIFLAG_5 = | |
3f55f5b8 | 87 | endif |
b17c1746 | 88 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 89 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
90 | endif |
91 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 92 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
93 | endif |
94 | ifeq ($(WXUNIV),1) | |
95 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
cecc483e VS |
96 | endif |
97 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
98 | ifeq ($(DEBUG_FLAG),default) |
99 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
100 | endif | |
101 | endif | |
102 | ifeq ($(DEBUG_FLAG),1) | |
cecc483e VS |
103 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
104 | endif | |
8c9f8f91 JS |
105 | ifeq ($(USE_EXCEPTIONS),0) |
106 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
107 | endif | |
108 | ifeq ($(USE_RTTI),0) | |
109 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
110 | endif | |
111 | ifeq ($(USE_THREADS),0) | |
112 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
113 | endif | |
7379e476 VZ |
114 | ifeq ($(UNICODE),0) |
115 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
116 | endif | |
b17c1746 DE |
117 | ifeq ($(UNICODE),1) |
118 | __UNICODE_DEFINE_p = -D_UNICODE | |
119 | endif | |
2113bc77 MW |
120 | ifeq ($(MSLU),1) |
121 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
122 | endif | |
3abcf424 RD |
123 | ifeq ($(USE_GDIPLUS),1) |
124 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
125 | endif | |
cecc483e VS |
126 | ifeq ($(SHARED),1) |
127 | __DLLFLAG_p = -DWXUSINGDLL | |
128 | endif | |
b17c1746 | 129 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
130 | __WXLIB_XML_p = \ |
131 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
a4ad36cd | 132 | endif |
b17c1746 | 133 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
134 | __WXLIB_BASE_p = \ |
135 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
a4ad36cd | 136 | endif |
b17c1746 DE |
137 | ifeq ($(MONOLITHIC),1) |
138 | __WXLIB_MONO_p = \ | |
c33fae85 | 139 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
a4ad36cd | 140 | endif |
b17c1746 DE |
141 | ifeq ($(MSLU),1) |
142 | __UNICOWS_LIB_p = -lunicows | |
3f55f5b8 | 143 | endif |
3abcf424 RD |
144 | ifeq ($(USE_GDIPLUS),1) |
145 | __GDIPLUS_LIB_p = -lgdiplus | |
146 | endif | |
b17c1746 DE |
147 | ifeq ($(BUILD),debug) |
148 | ifeq ($(DEBUG_INFO),default) | |
149 | __DEBUGINFO = -g | |
cecc483e | 150 | endif |
2265a2d5 | 151 | endif |
b17c1746 DE |
152 | ifeq ($(BUILD),release) |
153 | ifeq ($(DEBUG_INFO),default) | |
154 | __DEBUGINFO = | |
cecc483e | 155 | endif |
cecc483e | 156 | endif |
b17c1746 DE |
157 | ifeq ($(DEBUG_INFO),0) |
158 | __DEBUGINFO = | |
cecc483e | 159 | endif |
b17c1746 DE |
160 | ifeq ($(DEBUG_INFO),1) |
161 | __DEBUGINFO = -g | |
cecc483e | 162 | endif |
8c9f8f91 JS |
163 | ifeq ($(USE_THREADS),0) |
164 | __THREADSFLAG = | |
165 | endif | |
166 | ifeq ($(USE_THREADS),1) | |
167 | __THREADSFLAG = -mthreads | |
168 | endif | |
cecc483e VS |
169 | |
170 | ||
171 | all: $(OBJS) | |
172 | $(OBJS): | |
173 | -if not exist $(OBJS) mkdir $(OBJS) | |
174 | ||
175 | ### Targets: ### | |
176 | ||
d2ec8d84 | 177 | all: $(__wxrc___depname) |
cecc483e | 178 | |
cecc483e VS |
179 | clean: |
180 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 181 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
cecc483e VS |
182 | -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe |
183 | ||
d2ec8d84 | 184 | ifeq ($(USE_XRC),1) |
3f55f5b8 | 185 | $(OBJS)\wxrc.exe: $(WXRC_OBJECTS) |
7379e476 | 186 | $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
d2ec8d84 | 187 | endif |
cecc483e | 188 | |
b17c1746 | 189 | $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp |
0d90d6ea | 190 | $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 191 | |
cecc483e | 192 | .PHONY: all clean |
162a956b | 193 | |
8c9f8f91 | 194 | |
0d90d6ea JS |
195 | # Dependencies tracking: |
196 | -include $(OBJS)/*.d |