]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/execmon/makefile.gcc
Make TOOLKIT variable constant in MSW makefiles.
[wxWidgets.git] / utils / execmon / makefile.gcc
... / ...
CommitLineData
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.9 (http://www.bakefile.org)\r
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7include ../../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
15CPPDEPS = -MT$@ -MF$@.d -MD -MP\r
16WX_RELEASE_NODOT = 29\r
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24EXECMON_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
30 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
31 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
32EXECMON_OBJECTS = \\r
33 $(OBJS)\execmon_execmon.o\r
34\r
35### Conditionally set variables: ###\r
36\r
37ifeq ($(TOOLKIT),GTK)
38WIN32_TOOLKIT_LOWERCASE = gtk
39endif
40ifeq ($(TOOLKIT),MSW)
41WIN32_TOOLKIT_LOWERCASE = msw
42endif
43ifeq ($(GCC_VERSION),2.95)\r
44GCCFLAGS = -fvtable-thunks\r
45endif\r
46ifeq ($(USE_GUI),0)\r
47PORTNAME = base\r
48endif\r
49ifeq ($(USE_GUI),1)\r
50PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
51endif
52ifeq ($(TOOLKIT),MAC)
53WXBASEPORT = _carbon
54endif
55ifeq ($(OFFICIAL_BUILD),1)
56COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
57endif\r
58ifeq ($(BUILD),debug)\r
59WXDEBUGFLAG = d\r
60endif\r
61ifeq ($(UNICODE),1)\r
62WXUNICODEFLAG = u\r
63endif\r
64ifeq ($(WXUNIV),1)\r
65WXUNIVNAME = univ\r
66endif\r
67ifeq ($(SHARED),1)\r
68WXDLLFLAG = dll\r
69endif\r
70ifeq ($(SHARED),0)\r
71LIBTYPE_SUFFIX = lib\r
72endif\r
73ifeq ($(SHARED),1)\r
74LIBTYPE_SUFFIX = dll\r
75endif\r
76ifeq ($(MONOLITHIC),0)\r
77EXTRALIBS_FOR_BASE = \r
78endif\r
79ifeq ($(MONOLITHIC),1)\r
80EXTRALIBS_FOR_BASE = \r
81endif\r
82ifeq ($(TOOLKIT),GTK)
83CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
84endif
85ifeq ($(USE_XRC),1)\r
86__execmon___depname = $(OBJS)\execmon.exe\r
87endif\r
88ifeq ($(BUILD),debug)\r
89__OPTIMIZEFLAG_2 = -O0\r
90endif\r
91ifeq ($(BUILD),release)\r
92__OPTIMIZEFLAG_2 = -O2\r
93endif\r
94ifeq ($(USE_RTTI),0)\r
95__RTTIFLAG_5 = -fno-rtti\r
96endif\r
97ifeq ($(USE_RTTI),1)\r
98__RTTIFLAG_5 = \r
99endif\r
100ifeq ($(USE_EXCEPTIONS),0)\r
101__EXCEPTIONSFLAG_6 = -fno-exceptions\r
102endif\r
103ifeq ($(USE_EXCEPTIONS),1)\r
104__EXCEPTIONSFLAG_6 = \r
105endif\r
106ifeq ($(WXUNIV),1)\r
107__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
108endif\r
109ifeq ($(DEBUG_FLAG),0)\r
110__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
111endif\r
112ifeq ($(BUILD),release)\r
113__NDEBUG_DEFINE_p = -DNDEBUG\r
114endif\r
115ifeq ($(USE_EXCEPTIONS),0)\r
116__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
117endif\r
118ifeq ($(USE_RTTI),0)\r
119__RTTI_DEFINE_p = -DwxNO_RTTI\r
120endif\r
121ifeq ($(USE_THREADS),0)\r
122__THREAD_DEFINE_p = -DwxNO_THREADS\r
123endif\r
124ifeq ($(UNICODE),0)\r
125__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
126endif\r
127ifeq ($(UNICODE),1)\r
128__UNICODE_DEFINE_p = -D_UNICODE\r
129endif\r
130ifeq ($(MSLU),1)\r
131__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
132endif\r
133ifeq ($(USE_CAIRO),1)\r
134____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
135endif\r
136ifeq ($(SHARED),1)\r
137__DLLFLAG_p = -DWXUSINGDLL\r
138endif\r
139ifeq ($(MONOLITHIC),0)\r
140__WXLIB_BASE_p = \\r
141 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
142endif\r
143ifeq ($(MONOLITHIC),1)\r
144__WXLIB_MONO_p = \\r
145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
146endif\r
147ifeq ($(MONOLITHIC),1)\r
148__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
149endif\r
150ifeq ($(USE_GUI),1)\r
151__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
152endif\r
153ifeq ($(MSLU),1)\r
154__UNICOWS_LIB_p = -lunicows\r
155endif\r
156ifeq ($(USE_CAIRO),1)\r
157__CAIRO_LIB_p = -lcairo\r
158endif\r
159ifeq ($(USE_CAIRO),1)\r
160____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
161endif\r
162ifeq ($(BUILD),debug)\r
163ifeq ($(DEBUG_INFO),default)\r
164__DEBUGINFO = -g\r
165endif\r
166endif\r
167ifeq ($(BUILD),release)\r
168ifeq ($(DEBUG_INFO),default)\r
169__DEBUGINFO = \r
170endif\r
171endif\r
172ifeq ($(DEBUG_INFO),0)\r
173__DEBUGINFO = \r
174endif\r
175ifeq ($(DEBUG_INFO),1)\r
176__DEBUGINFO = -g\r
177endif\r
178ifeq ($(USE_THREADS),0)\r
179__THREADSFLAG = \r
180endif\r
181ifeq ($(USE_THREADS),1)\r
182__THREADSFLAG = -mthreads\r
183endif\r
184\r
185\r
186all: $(OBJS)\r
187$(OBJS):\r
188 -if not exist $(OBJS) mkdir $(OBJS)\r
189\r
190### Targets: ###\r
191\r
192all: $(__execmon___depname)\r
193\r
194clean: \r
195 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
196 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
197 -if exist $(OBJS)\execmon.exe del $(OBJS)\execmon.exe\r
198\r
199ifeq ($(USE_XRC),1)\r
200$(OBJS)\execmon.exe: $(EXECMON_OBJECTS)\r
201 $(CXX) -o $@ $(EXECMON_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__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
202endif\r
203\r
204$(OBJS)\execmon_execmon.o: ./execmon.cpp\r
205 $(CXX) -c -o $@ $(EXECMON_CXXFLAGS) $(CPPDEPS) $<\r
206\r
207.PHONY: all clean\r
208\r
209\r
210SHELL := $(COMSPEC)\r
211\r
212# Dependencies tracking:\r
213-include $(OBJS)/*.d\r