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