]> git.saurik.com Git - wxWidgets.git/blame - samples/dll/makefile.gcc
Use /bin/echo for creation of Mac OS X PkgInfo files.
[wxWidgets.git] / samples / dll / makefile.gcc
CommitLineData
61aba460
VS
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
61aba460
VS
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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23MY_DLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
da8b1d4b
KO
25 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
27 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
28 $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \\r
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
30MY_DLL_OBJECTS = \\r
31 $(OBJS)\my_dll_my_dll.o\r
32WX_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
da8b1d4b
KO
34 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
35 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
36 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
37 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r
38 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
39WX_EXE_OBJECTS = \\r
40 $(OBJS)\wx_exe_sample_rc.o \\r
1ffe64ef 41 $(OBJS)\wx_exe_wx_exe.o\r
da8b1d4b
KO
42SDK_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
43 $(GCCFLAGS) -DHAVE_W32API_H $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \\r
44 $(CXXFLAGS)\r
45SDK_EXE_OBJECTS = \\r
46 $(OBJS)\sdk_exe_sdk_exe.o\r
61aba460
VS
47\r
48### Conditionally set variables: ###\r
49\r
50ifeq ($(GCC_VERSION),2.95)\r
51GCCFLAGS = -fvtable-thunks\r
52endif\r
53ifeq ($(USE_GUI),0)\r
54PORTNAME = base\r
55endif\r
56ifeq ($(USE_GUI),1)\r
57PORTNAME = msw\r
58endif\r
59ifeq ($(BUILD),debug)\r
60WXDEBUGFLAG = d\r
61endif\r
62ifeq ($(UNICODE),1)\r
63WXUNICODEFLAG = u\r
64endif\r
65ifeq ($(WXUNIV),1)\r
66WXUNIVNAME = univ\r
67endif\r
68ifeq ($(SHARED),1)\r
69WXDLLFLAG = dll\r
70endif\r
71ifeq ($(SHARED),0)\r
72LIBTYPE_SUFFIX = lib\r
73endif\r
74ifeq ($(SHARED),1)\r
75LIBTYPE_SUFFIX = dll\r
76endif\r
77ifeq ($(MONOLITHIC),0)\r
78EXTRALIBS_FOR_BASE = \r
79endif\r
80ifeq ($(MONOLITHIC),1)\r
51ec29ea 81EXTRALIBS_FOR_BASE = \r
61aba460
VS
82endif\r
83ifeq ($(SHARED),0)\r
84__wx_exe___depname = $(OBJS)\wx_exe.exe\r
85endif\r
86ifeq ($(WXUNIV),1)\r
87__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__\r
88endif\r
89ifeq ($(DEBUG_FLAG),0)\r
90__DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0\r
91endif\r
da8b1d4b
KO
92ifeq ($(BUILD),release)\r
93__NDEBUG_DEFINE_p_3 = --define NDEBUG\r
94endif\r
61aba460
VS
95ifeq ($(USE_EXCEPTIONS),0)\r
96__EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS\r
97endif\r
98ifeq ($(USE_RTTI),0)\r
99__RTTI_DEFINE_p_3 = --define wxNO_RTTI\r
100endif\r
101ifeq ($(USE_THREADS),0)\r
102__THREAD_DEFINE_p_3 = --define wxNO_THREADS\r
103endif\r
104ifeq ($(UNICODE),0)\r
105__UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0\r
106endif\r
107ifeq ($(UNICODE),1)\r
108__UNICODE_DEFINE_p_3 = --define _UNICODE\r
109endif\r
110ifeq ($(MSLU),1)\r
111__MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1\r
112endif\r
61aba460
VS
113ifeq ($(USE_CAIRO),1)\r
114__CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo\r
115endif\r
116ifeq ($(SHARED),1)\r
117__DLLFLAG_p_3 = --define WXUSINGDLL\r
118endif\r
61aba460
VS
119ifeq ($(WXUNIV),1)\r
120__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
121endif\r
122ifeq ($(DEBUG_FLAG),0)\r
123__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
124endif\r
da8b1d4b
KO
125ifeq ($(BUILD),release)\r
126__NDEBUG_DEFINE_p = -DNDEBUG\r
127endif\r
61aba460
VS
128ifeq ($(USE_EXCEPTIONS),0)\r
129__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
130endif\r
131ifeq ($(USE_RTTI),0)\r
132__RTTI_DEFINE_p = -DwxNO_RTTI\r
133endif\r
134ifeq ($(USE_THREADS),0)\r
135__THREAD_DEFINE_p = -DwxNO_THREADS\r
136endif\r
137ifeq ($(UNICODE),0)\r
138__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
139endif\r
140ifeq ($(UNICODE),1)\r
141__UNICODE_DEFINE_p = -D_UNICODE\r
142endif\r
143ifeq ($(MSLU),1)\r
144__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
145endif\r
61aba460
VS
146ifeq ($(USE_CAIRO),1)\r
147____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
148endif\r
149ifeq ($(SHARED),1)\r
150__DLLFLAG_p = -DWXUSINGDLL\r
151endif\r
152ifeq ($(MONOLITHIC),0)\r
153__WXLIB_CORE_p = \\r
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
155endif\r
156ifeq ($(MONOLITHIC),0)\r
157__WXLIB_BASE_p = \\r
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
159endif\r
160ifeq ($(MONOLITHIC),1)\r
161__WXLIB_MONO_p = \\r
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
163endif\r
164ifeq ($(USE_GUI),1)\r
165__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
166endif\r
167ifeq ($(USE_GUI),1)\r
168__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
169endif\r
170ifeq ($(USE_GUI),1)\r
171__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
172endif\r
173ifeq ($(MSLU),1)\r
174__UNICOWS_LIB_p = -lunicows\r
175endif\r
61aba460
VS
176ifeq ($(USE_CAIRO),1)\r
177__CAIRO_LIB_p = -lcairo\r
178endif\r
179ifeq ($(USE_CAIRO),1)\r
180____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
181endif\r
182ifeq ($(BUILD),debug)\r
da8b1d4b
KO
183__OPTIMIZEFLAG = -O0\r
184endif\r
185ifeq ($(BUILD),release)\r
186__OPTIMIZEFLAG = -O2\r
187endif\r
188ifeq ($(USE_RTTI),0)\r
189__RTTIFLAG = -fno-rtti\r
190endif\r
191ifeq ($(USE_RTTI),1)\r
192__RTTIFLAG = \r
193endif\r
194ifeq ($(USE_EXCEPTIONS),0)\r
195__EXCEPTIONSFLAG = -fno-exceptions\r
196endif\r
197ifeq ($(USE_EXCEPTIONS),1)\r
198__EXCEPTIONSFLAG = \r
199endif\r
200ifeq ($(BUILD),debug)\r
61aba460
VS
201ifeq ($(DEBUG_INFO),default)\r
202__DEBUGINFO = -g\r
203endif\r
204endif\r
205ifeq ($(BUILD),release)\r
206ifeq ($(DEBUG_INFO),default)\r
207__DEBUGINFO = \r
208endif\r
209endif\r
210ifeq ($(DEBUG_INFO),0)\r
211__DEBUGINFO = \r
212endif\r
213ifeq ($(DEBUG_INFO),1)\r
214__DEBUGINFO = -g\r
215endif\r
216ifeq ($(USE_THREADS),0)\r
217__THREADSFLAG = \r
218endif\r
219ifeq ($(USE_THREADS),1)\r
220__THREADSFLAG = -mthreads\r
221endif\r
222\r
223\r
224all: $(OBJS)\r
225$(OBJS):\r
226 -if not exist $(OBJS) mkdir $(OBJS)\r
227\r
228### Targets: ###\r
229\r
da8b1d4b 230all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r
61aba460
VS
231\r
232clean: \r
233 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
234 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
235 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
236 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a\r
237 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
da8b1d4b 238 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r
61aba460
VS
239\r
240$(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
b796194b 241 $(CXX) $(LINK_DLL_FLAGS) -fPIC -o $@ $(MY_DLL_OBJECTS) -Wl,--out-implib=$(OBJS)\libmy_dll.a $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
61aba460
VS
242\r
243ifeq ($(SHARED),0)\r
244$(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll\r
b796194b 245 $(CXX) -o $@ $(WX_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\libmy_dll.a $(__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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
61aba460
VS
246endif\r
247\r
da8b1d4b
KO
248$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
249 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32\r
250\r
61aba460
VS
251$(OBJS)\my_dll_my_dll.o: ./my_dll.cpp\r
252 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<\r
253\r
254$(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc\r
b796194b 255 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH\r
61aba460 256\r
1ffe64ef 257$(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp\r
61aba460
VS
258 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<\r
259\r
da8b1d4b
KO
260$(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp\r
261 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<\r
262\r
61aba460
VS
263.PHONY: all clean\r
264\r
265\r
266SHELL := $(COMSPEC)\r
267\r
268# Dependencies tracking:\r
269-include $(OBJS)/*.d\r