]> git.saurik.com Git - wxWidgets.git/blob - samples/sashtest/makefile.gcc
XTI has own wxObjectEventFunction and has to follow event.h
[wxWidgets.git] / samples / sashtest / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 SASHTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
26 SASHTEST_OBJECTS = \
27 $(OBJS)\sashtest_sashtest.o \
28 $(OBJS)\sashtest_sashtest_rc.o
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)
42 ifeq ($(DEBUG_FLAG),default)
43 WXDEBUGFLAG = d
44 endif
45 endif
46 ifeq ($(DEBUG_FLAG),1)
47 WXDEBUGFLAG = d
48 endif
49 ifeq ($(UNICODE),1)
50 WXUNICODEFLAG = u
51 endif
52 ifeq ($(WXUNIV),1)
53 WXUNIVNAME = univ
54 endif
55 ifeq ($(SHARED),1)
56 WXDLLFLAG = dll
57 endif
58 ifeq ($(SHARED),0)
59 LIBTYPE_SUFFIX = lib
60 endif
61 ifeq ($(SHARED),1)
62 LIBTYPE_SUFFIX = dll
63 endif
64 ifeq ($(MONOLITHIC),0)
65 EXTRALIBS_FOR_BASE =
66 endif
67 ifeq ($(MONOLITHIC),1)
68 EXTRALIBS_FOR_BASE =
69 endif
70 ifeq ($(BUILD),debug)
71 __OPTIMIZEFLAG_2 = -O0
72 endif
73 ifeq ($(BUILD),release)
74 __OPTIMIZEFLAG_2 = -O2
75 endif
76 ifeq ($(USE_EXCEPTIONS),0)
77 __EXCEPTIONSFLAG_4 = -fno-rtti
78 endif
79 ifeq ($(USE_EXCEPTIONS),1)
80 __EXCEPTIONSFLAG_4 =
81 endif
82 ifeq ($(USE_EXCEPTIONS),0)
83 __EXCEPTIONSFLAG_5 = -fno-exceptions
84 endif
85 ifeq ($(USE_EXCEPTIONS),1)
86 __EXCEPTIONSFLAG_5 =
87 endif
88 ifeq ($(WXUNIV),1)
89 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
90 endif
91 ifeq ($(WXUNIV),1)
92 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
93 endif
94 ifeq ($(BUILD),debug)
95 ifeq ($(DEBUG_FLAG),default)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 endif
98 endif
99 ifeq ($(DEBUG_FLAG),1)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 endif
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 endif
106 endif
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 endif
110 ifeq ($(UNICODE),1)
111 __UNICODE_DEFINE_p = -D_UNICODE
112 endif
113 ifeq ($(UNICODE),1)
114 __UNICODE_DEFINE_p_1 = --define _UNICODE
115 endif
116 ifeq ($(SHARED),1)
117 __DLLFLAG_p = -DWXUSINGDLL
118 endif
119 ifeq ($(SHARED),1)
120 __DLLFLAG_p_1 = --define WXUSINGDLL
121 endif
122 ifeq ($(MONOLITHIC),0)
123 __WXLIB_ADV_p = \
124 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
125 endif
126 ifeq ($(MONOLITHIC),0)
127 __WXLIB_CORE_p = \
128 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
129 endif
130 ifeq ($(MONOLITHIC),0)
131 __WXLIB_BASE_p = \
132 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133 endif
134 ifeq ($(MONOLITHIC),1)
135 __WXLIB_MONO_p = \
136 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137 endif
138 ifeq ($(USE_GUI),1)
139 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
140 endif
141 ifeq ($(USE_GUI),1)
142 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
143 endif
144 ifeq ($(USE_GUI),1)
145 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
146 endif
147 ifeq ($(MSLU),1)
148 __UNICOWS_LIB_p = -lunicows
149 endif
150 ifeq ($(BUILD),debug)
151 ifeq ($(DEBUG_INFO),default)
152 __DEBUGINFO = -g
153 endif
154 endif
155 ifeq ($(BUILD),release)
156 ifeq ($(DEBUG_INFO),default)
157 __DEBUGINFO =
158 endif
159 endif
160 ifeq ($(DEBUG_INFO),0)
161 __DEBUGINFO =
162 endif
163 ifeq ($(DEBUG_INFO),1)
164 __DEBUGINFO = -g
165 endif
166
167
168 all: $(OBJS)
169 $(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172 ### Targets: ###
173
174 all: $(OBJS)\sashtest.exe
175
176 clean:
177 -if exist $(OBJS)\*.o del $(OBJS)\*.o
178 -if exist $(OBJS)\sashtest.exe del $(OBJS)\sashtest.exe
179
180 $(OBJS)\sashtest.exe: $(SASHTEST_OBJECTS) $(OBJS)\sashtest_sashtest_rc.o
181 $(CXX) -o $@ $(SASHTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_ADV_p) $(__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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
182
183 $(OBJS)\sashtest_sashtest.o: ./sashtest.cpp
184 $(CXX) -c -o $@ $(SASHTEST_CXXFLAGS) $<
185
186 $(OBJS)\sashtest_sashtest_rc.o: ./sashtest.rc
187 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
188
189 .PHONY: all clean
190