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