]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
2d611b5c VS |
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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
2d611b5c VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | OGLEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
2d611b5c | 22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
b14abf14 | 23 | $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \ |
c33fae85 | 24 | $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include \ |
b14abf14 JS |
25 | $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \ |
26 | $(CPPFLAGS) $(CXXFLAGS) | |
2d611b5c VS |
27 | OGLEDIT_OBJECTS = \ |
28 | $(OBJS)\ogledit_ogledit.o \ | |
29 | $(OBJS)\ogledit_doc.o \ | |
30 | $(OBJS)\ogledit_view.o \ | |
31 | $(OBJS)\ogledit_palette.o \ | |
32 | $(OBJS)\ogledit_ogledit_rc.o | |
33 | ||
34 | ### Conditionally set variables: ### | |
35 | ||
36 | ifeq ($(GCC_VERSION),2.95) | |
37 | GCCFLAGS = -fvtable-thunks | |
38 | endif | |
39 | ifeq ($(USE_GUI),0) | |
40 | PORTNAME = base | |
41 | endif | |
42 | ifeq ($(USE_GUI),1) | |
43 | PORTNAME = msw | |
44 | endif | |
45 | ifeq ($(BUILD),debug) | |
46 | ifeq ($(DEBUG_FLAG),default) | |
47 | WXDEBUGFLAG = d | |
48 | endif | |
49 | endif | |
50 | ifeq ($(DEBUG_FLAG),1) | |
51 | WXDEBUGFLAG = d | |
52 | endif | |
2d611b5c VS |
53 | ifeq ($(UNICODE),1) |
54 | WXUNICODEFLAG = u | |
55 | endif | |
56 | ifeq ($(WXUNIV),1) | |
57 | WXUNIVNAME = univ | |
58 | endif | |
b17c1746 DE |
59 | ifeq ($(SHARED),1) |
60 | WXDLLFLAG = dll | |
2d611b5c | 61 | endif |
b14abf14 JS |
62 | ifeq ($(SHARED),0) |
63 | LIBTYPE_SUFFIX = lib | |
64 | endif | |
65 | ifeq ($(SHARED),1) | |
66 | LIBTYPE_SUFFIX = dll | |
67 | endif | |
dd65d8c8 RN |
68 | ifeq ($(MONOLITHIC),0) |
69 | EXTRALIBS_FOR_BASE = | |
70 | endif | |
71 | ifeq ($(MONOLITHIC),1) | |
72 | EXTRALIBS_FOR_BASE = | |
73 | endif | |
b17c1746 DE |
74 | ifeq ($(BUILD),debug) |
75 | __OPTIMIZEFLAG_2 = -O0 | |
2d611b5c VS |
76 | endif |
77 | ifeq ($(BUILD),release) | |
b17c1746 | 78 | __OPTIMIZEFLAG_2 = -O2 |
2d611b5c | 79 | endif |
b17c1746 DE |
80 | ifeq ($(USE_EXCEPTIONS),0) |
81 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
2d611b5c | 82 | endif |
b17c1746 DE |
83 | ifeq ($(USE_EXCEPTIONS),1) |
84 | __EXCEPTIONSFLAG_4 = | |
2d611b5c | 85 | endif |
b17c1746 DE |
86 | ifeq ($(USE_EXCEPTIONS),0) |
87 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
88 | endif | |
89 | ifeq ($(USE_EXCEPTIONS),1) | |
90 | __EXCEPTIONSFLAG_5 = | |
91 | endif | |
92 | ifeq ($(WXUNIV),1) | |
93 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
94 | endif | |
95 | ifeq ($(WXUNIV),1) | |
96 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
97 | endif |
98 | ifeq ($(BUILD),debug) | |
99 | ifeq ($(DEBUG_FLAG),default) | |
100 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
101 | endif | |
102 | endif | |
103 | ifeq ($(DEBUG_FLAG),1) | |
104 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
105 | endif | |
106 | ifeq ($(BUILD),debug) | |
107 | ifeq ($(DEBUG_FLAG),default) | |
108 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
109 | endif | |
110 | endif | |
111 | ifeq ($(DEBUG_FLAG),1) | |
112 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
113 | endif | |
b17c1746 DE |
114 | ifeq ($(UNICODE),1) |
115 | __UNICODE_DEFINE_p = -D_UNICODE | |
116 | endif | |
117 | ifeq ($(UNICODE),1) | |
118 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
119 | endif | |
2d611b5c VS |
120 | ifeq ($(SHARED),1) |
121 | __DLLFLAG_p = -DWXUSINGDLL | |
122 | endif | |
123 | ifeq ($(SHARED),1) | |
124 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
125 | endif | |
b17c1746 DE |
126 | ifeq ($(MONOLITHIC),0) |
127 | __WXLIB_CORE_p = \ | |
c33fae85 | 128 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 129 | endif |
b17c1746 | 130 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
131 | __WXLIB_BASE_p = \ |
132 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
a4ad36cd | 133 | endif |
b17c1746 DE |
134 | ifeq ($(MONOLITHIC),1) |
135 | __WXLIB_MONO_p = \ | |
c33fae85 | 136 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
a4ad36cd | 137 | endif |
b17c1746 | 138 | ifeq ($(USE_GUI),1) |
9c2d002b | 139 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
a4ad36cd | 140 | endif |
2d611b5c | 141 | ifeq ($(USE_GUI),1) |
9c2d002b | 142 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
2d611b5c VS |
143 | endif |
144 | ifeq ($(USE_GUI),1) | |
9c2d002b | 145 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
2d611b5c | 146 | endif |
b17c1746 DE |
147 | ifeq ($(MSLU),1) |
148 | __UNICOWS_LIB_p = -lunicows | |
2d611b5c | 149 | endif |
b17c1746 DE |
150 | ifeq ($(BUILD),debug) |
151 | ifeq ($(DEBUG_INFO),default) | |
152 | __DEBUGINFO = -g | |
2d611b5c | 153 | endif |
19c35fa5 | 154 | endif |
b17c1746 DE |
155 | ifeq ($(BUILD),release) |
156 | ifeq ($(DEBUG_INFO),default) | |
157 | __DEBUGINFO = | |
2d611b5c | 158 | endif |
2d611b5c | 159 | endif |
b17c1746 DE |
160 | ifeq ($(DEBUG_INFO),0) |
161 | __DEBUGINFO = | |
2d611b5c | 162 | endif |
b17c1746 DE |
163 | ifeq ($(DEBUG_INFO),1) |
164 | __DEBUGINFO = -g | |
2d611b5c VS |
165 | endif |
166 | ||
2d611b5c VS |
167 | |
168 | all: $(OBJS) | |
169 | $(OBJS): | |
170 | -if not exist $(OBJS) mkdir $(OBJS) | |
171 | ||
172 | ### Targets: ### | |
173 | ||
174 | all: $(OBJS)\ogledit.exe | |
175 | ||
b17c1746 DE |
176 | clean: |
177 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
178 | -if exist $(OBJS)\ogledit.exe del $(OBJS)\ogledit.exe | |
179 | ||
180 | $(OBJS)\ogledit.exe: $(OGLEDIT_OBJECTS) $(OBJS)\ogledit_ogledit_rc.o | |
dd65d8c8 | 181 | $(CXX) -o $@ $(OGLEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated $(__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 |
2d611b5c | 182 | |
1c3a6972 | 183 | $(OBJS)\ogledit_ogledit.o: ./ogledit.cpp |
2d611b5c VS |
184 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< |
185 | ||
b17c1746 | 186 | $(OBJS)\ogledit_doc.o: ./doc.cpp |
2d611b5c VS |
187 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< |
188 | ||
1c3a6972 | 189 | $(OBJS)\ogledit_view.o: ./view.cpp |
2d611b5c VS |
190 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< |
191 | ||
b17c1746 DE |
192 | $(OBJS)\ogledit_palette.o: ./palette.cpp |
193 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
2d611b5c | 194 | |
b17c1746 | 195 | $(OBJS)\ogledit_ogledit_rc.o: ./ogledit.rc |
b14abf14 | 196 | 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 --include-dir ./../../../include |
2d611b5c VS |
197 | |
198 | .PHONY: all clean | |
b14abf14 | 199 |