]>
Commit | Line | Data |
---|---|---|
e93c6860 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
e93c6860 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
e93c6860 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
e93c6860 VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b17c1746 DE |
18 | SETUPHDIR = \ |
19 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
20 | PENGUIN_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \ |
21 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
22 | -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) \ | |
c33fae85 | 23 | -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CFLAGS) |
9bfe7ad9 | 24 | PENGUIN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
e93c6860 | 25 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
22cef566 | 26 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \ |
c33fae85 | 27 | $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \ |
9bfe7ad9 | 28 | $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS) |
e93c6860 VS |
29 | PENGUIN_OBJECTS = \ |
30 | $(OBJS)\penguin_penguin.o \ | |
31 | $(OBJS)\penguin_lw.o \ | |
32 | $(OBJS)\penguin_trackball.o \ | |
33 | $(OBJS)\penguin_penguin_rc.o | |
34 | ||
35 | ### Conditionally set variables: ### | |
36 | ||
37 | ifeq ($(GCC_VERSION),2.95) | |
38 | GCCFLAGS = -fvtable-thunks | |
39 | endif | |
40 | ifeq ($(USE_GUI),0) | |
41 | PORTNAME = base | |
42 | endif | |
43 | ifeq ($(USE_GUI),1) | |
44 | PORTNAME = msw | |
45 | endif | |
46 | ifeq ($(BUILD),debug) | |
47 | ifeq ($(DEBUG_FLAG),default) | |
48 | WXDEBUGFLAG = d | |
49 | endif | |
50 | endif | |
51 | ifeq ($(DEBUG_FLAG),1) | |
52 | WXDEBUGFLAG = d | |
53 | endif | |
e93c6860 VS |
54 | ifeq ($(UNICODE),1) |
55 | WXUNICODEFLAG = u | |
56 | endif | |
57 | ifeq ($(WXUNIV),1) | |
58 | WXUNIVNAME = univ | |
59 | endif | |
b17c1746 DE |
60 | ifeq ($(SHARED),1) |
61 | WXDLLFLAG = dll | |
e93c6860 | 62 | endif |
dd65d8c8 RN |
63 | ifeq ($(MONOLITHIC),0) |
64 | EXTRALIBS_FOR_BASE = | |
65 | endif | |
66 | ifeq ($(MONOLITHIC),1) | |
67 | EXTRALIBS_FOR_BASE = | |
68 | endif | |
69 | ifeq ($(USE_OPENGL),1) | |
70 | __penguin___depname = $(OBJS)\penguin.exe | |
71 | endif | |
b17c1746 DE |
72 | ifeq ($(BUILD),debug) |
73 | __OPTIMIZEFLAG_2 = -O0 | |
e93c6860 VS |
74 | endif |
75 | ifeq ($(BUILD),release) | |
b17c1746 | 76 | __OPTIMIZEFLAG_2 = -O2 |
e93c6860 | 77 | endif |
b17c1746 DE |
78 | ifeq ($(USE_EXCEPTIONS),0) |
79 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
e93c6860 | 80 | endif |
b17c1746 DE |
81 | ifeq ($(USE_EXCEPTIONS),1) |
82 | __EXCEPTIONSFLAG_4 = | |
e93c6860 | 83 | endif |
b17c1746 DE |
84 | ifeq ($(USE_EXCEPTIONS),0) |
85 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
86 | endif | |
87 | ifeq ($(USE_EXCEPTIONS),1) | |
88 | __EXCEPTIONSFLAG_5 = | |
89 | endif | |
90 | ifeq ($(WXUNIV),1) | |
91 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
92 | endif | |
93 | ifeq ($(WXUNIV),1) | |
94 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
e93c6860 VS |
95 | endif |
96 | ifeq ($(BUILD),debug) | |
97 | ifeq ($(DEBUG_FLAG),default) | |
98 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
99 | endif | |
100 | endif | |
101 | ifeq ($(DEBUG_FLAG),1) | |
102 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
103 | endif | |
104 | ifeq ($(BUILD),debug) | |
105 | ifeq ($(DEBUG_FLAG),default) | |
106 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
107 | endif | |
108 | endif | |
109 | ifeq ($(DEBUG_FLAG),1) | |
110 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
111 | endif | |
b17c1746 DE |
112 | ifeq ($(UNICODE),1) |
113 | __UNICODE_DEFINE_p = -D_UNICODE | |
114 | endif | |
115 | ifeq ($(UNICODE),1) | |
116 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
117 | endif | |
e93c6860 VS |
118 | ifeq ($(SHARED),1) |
119 | __DLLFLAG_p = -DWXUSINGDLL | |
120 | endif | |
121 | ifeq ($(SHARED),1) | |
122 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
123 | endif | |
b17c1746 DE |
124 | ifeq ($(MONOLITHIC),0) |
125 | __WXLIB_CORE_p = \ | |
c33fae85 | 126 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 127 | endif |
b17c1746 | 128 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
129 | __WXLIB_BASE_p = \ |
130 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 131 | endif |
b17c1746 DE |
132 | ifeq ($(MONOLITHIC),1) |
133 | __WXLIB_MONO_p = \ | |
c33fae85 | 134 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 135 | endif |
b17c1746 | 136 | ifeq ($(USE_GUI),1) |
9c2d002b | 137 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 138 | endif |
e93c6860 | 139 | ifeq ($(USE_GUI),1) |
9c2d002b | 140 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
e93c6860 VS |
141 | endif |
142 | ifeq ($(USE_GUI),1) | |
9c2d002b | 143 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
e93c6860 | 144 | endif |
b17c1746 DE |
145 | ifeq ($(MSLU),1) |
146 | __UNICOWS_LIB_p = -lunicows | |
e93c6860 | 147 | endif |
b17c1746 DE |
148 | ifeq ($(SHARED),0) |
149 | LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG) | |
e93c6860 | 150 | endif |
b17c1746 DE |
151 | ifeq ($(SHARED),1) |
152 | LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG) | |
e93c6860 | 153 | endif |
b17c1746 DE |
154 | ifeq ($(BUILD),debug) |
155 | ifeq ($(DEBUG_INFO),default) | |
156 | __DEBUGINFO = -g | |
4e209a20 | 157 | endif |
e93c6860 | 158 | endif |
b17c1746 DE |
159 | ifeq ($(BUILD),release) |
160 | ifeq ($(DEBUG_INFO),default) | |
161 | __DEBUGINFO = | |
e93c6860 | 162 | endif |
e93c6860 | 163 | endif |
b17c1746 DE |
164 | ifeq ($(DEBUG_INFO),0) |
165 | __DEBUGINFO = | |
e93c6860 | 166 | endif |
b17c1746 DE |
167 | ifeq ($(DEBUG_INFO),1) |
168 | __DEBUGINFO = -g | |
e93c6860 VS |
169 | endif |
170 | ||
171 | ||
172 | all: $(OBJS) | |
173 | $(OBJS): | |
174 | -if not exist $(OBJS) mkdir $(OBJS) | |
175 | ||
176 | ### Targets: ### | |
177 | ||
dd65d8c8 | 178 | all: $(__penguin___depname) data |
e93c6860 | 179 | |
e93c6860 VS |
180 | clean: |
181 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
182 | -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe | |
183 | ||
dd65d8c8 | 184 | ifeq ($(USE_OPENGL),1) |
b17c1746 | 185 | $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin_rc.o |
dd65d8c8 RN |
186 | $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl -lopengl32 -lglu32 $(__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 |
187 | endif | |
b17c1746 | 188 | |
e93c6860 VS |
189 | data: |
190 | if not exist $(OBJS) mkdir $(OBJS) | |
191 | for %%f in (penguin.lwo) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
192 | ||
b17c1746 DE |
193 | $(OBJS)\penguin_penguin.o: ./penguin.cpp |
194 | $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $< | |
195 | ||
196 | $(OBJS)\penguin_lw.o: ./lw.cpp | |
197 | $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $< | |
198 | ||
199 | $(OBJS)\penguin_trackball.o: ./trackball.c | |
200 | $(CC) -c -o $@ $(PENGUIN_CFLAGS) $< | |
201 | ||
202 | $(OBJS)\penguin_penguin_rc.o: ./penguin.rc | |
c33fae85 | 203 | 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 |
e93c6860 | 204 | |
fd9f42b6 | 205 | .PHONY: all clean data |