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