]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
250700e4 | 7 | include ../../build/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
25a73439 VS |
15 | LIBDIRNAME = \ |
16 | .\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | OBJS = \ | |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | WIDGETS_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ | |
20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
21 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) -I.\..\..\src\tiff \ | |
22 | -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex \ | |
23 | -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS) | |
24 | WIDGETS_OBJECTS = \ | |
25 | $(OBJS)\widgets_button.o \ | |
26 | $(OBJS)\widgets_combobox.o \ | |
27 | $(OBJS)\widgets_gauge.o \ | |
28 | $(OBJS)\widgets_listbox.o \ | |
29 | $(OBJS)\widgets_notebook.o \ | |
30 | $(OBJS)\widgets_radiobox.o \ | |
31 | $(OBJS)\widgets_slider.o \ | |
32 | $(OBJS)\widgets_spinbtn.o \ | |
33 | $(OBJS)\widgets_static.o \ | |
34 | $(OBJS)\widgets_textctrl.o \ | |
35 | $(OBJS)\widgets_widgets.o \ | |
36 | $(OBJS)\widgets_widgets_rc.o | |
3b20263d VS |
37 | |
38 | ### Conditionally set variables: ### | |
39 | ||
250700e4 RD |
40 | ifeq ($(GCC_VERSION),2.95) |
41 | GCCFLAGS = -fvtable-thunks | |
42 | endif | |
3b20263d VS |
43 | ifeq ($(USE_GUI),0) |
44 | PORTNAME = base | |
45 | endif | |
46 | ifeq ($(USE_GUI),1) | |
47 | PORTNAME = msw | |
48 | endif | |
49 | ifeq ($(BUILD),debug) | |
25a73439 VS |
50 | ifeq ($(DEBUG_FLAG),default) |
51 | WXDEBUGFLAG = d | |
52 | endif | |
53 | endif | |
54 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
55 | WXDEBUGFLAG = d |
56 | endif | |
57 | ifeq ($(SHARED),1) | |
58 | WXDLLFLAG = dll | |
59 | endif | |
60 | ifeq ($(UNICODE),1) | |
61 | WXUNICODEFLAG = u | |
62 | endif | |
63 | ifeq ($(WXUNIV),1) | |
64 | WXUNIVNAME = univ | |
65 | endif | |
66 | ifeq ($(BUILD),debug) | |
25a73439 VS |
67 | ifeq ($(DEBUG_INFO),default) |
68 | __DEBUGINFO = -g | |
69 | endif | |
250700e4 RD |
70 | endif |
71 | ifeq ($(BUILD),release) | |
25a73439 VS |
72 | ifeq ($(DEBUG_INFO),default) |
73 | __DEBUGINFO = | |
74 | endif | |
75 | endif | |
76 | ifeq ($(DEBUG_INFO),0) | |
77 | __DEBUGINFO = | |
78 | endif | |
79 | ifeq ($(DEBUG_INFO),1) | |
80 | __DEBUGINFO = -g | |
250700e4 RD |
81 | endif |
82 | ifeq ($(BUILD),debug) | |
25a73439 VS |
83 | ifeq ($(DEBUG_FLAG),default) |
84 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
85 | endif | |
86 | endif | |
87 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
88 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
89 | endif | |
90 | ifeq ($(BUILD),debug) | |
25a73439 VS |
91 | ifeq ($(DEBUG_FLAG),default) |
92 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
96 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
97 | endif | |
98 | ifeq ($(SHARED),1) | |
99 | __DLLFLAG_p = -DWXUSINGDLL | |
100 | endif | |
101 | ifeq ($(SHARED),1) | |
102 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
103 | endif | |
25a73439 VS |
104 | ifeq ($(USE_GUI),1) |
105 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
106 | endif | |
107 | ifeq ($(USE_GUI),1) | |
108 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
109 | endif | |
110 | ifeq ($(USE_GUI),1) | |
111 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
112 | endif | |
250700e4 RD |
113 | ifeq ($(BUILD),debug) |
114 | __OPTIMIZEFLAG_2 = -O0 | |
115 | endif | |
116 | ifeq ($(BUILD),release) | |
117 | __OPTIMIZEFLAG_2 = -O2 | |
118 | endif | |
3b20263d VS |
119 | ifeq ($(UNICODE),1) |
120 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
121 | endif | |
122 | ifeq ($(UNICODE),1) | |
123 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1 | |
124 | endif | |
125 | ifeq ($(MONOLITHIC),0) | |
126 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
127 | endif | |
128 | ifeq ($(MONOLITHIC),0) | |
25a73439 VS |
129 | __WXLIB_CORE_p = \ |
130 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
3b20263d VS |
131 | endif |
132 | ifeq ($(MONOLITHIC),1) | |
25a73439 VS |
133 | __WXLIB_MONO_p = \ |
134 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
3b20263d VS |
135 | endif |
136 | ifeq ($(WXUNIV),1) | |
137 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
138 | endif | |
139 | ifeq ($(WXUNIV),1) | |
140 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
141 | endif | |
142 | ||
143 | ||
144 | all: $(OBJS) | |
145 | $(OBJS): | |
146 | -if not exist $(OBJS) mkdir $(OBJS) | |
147 | ||
148 | ### Targets: ### | |
149 | ||
150 | all: $(OBJS)\widgets.exe | |
151 | ||
152 | $(OBJS)\widgets_button.o: .\button.cpp | |
153 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
154 | ||
155 | $(OBJS)\widgets_combobox.o: .\combobox.cpp | |
156 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
157 | ||
158 | $(OBJS)\widgets_gauge.o: .\gauge.cpp | |
159 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
160 | ||
161 | $(OBJS)\widgets_listbox.o: .\listbox.cpp | |
162 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
163 | ||
164 | $(OBJS)\widgets_notebook.o: .\notebook.cpp | |
165 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
166 | ||
167 | $(OBJS)\widgets_radiobox.o: .\radiobox.cpp | |
168 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
169 | ||
170 | $(OBJS)\widgets_slider.o: .\slider.cpp | |
171 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
172 | ||
173 | $(OBJS)\widgets_spinbtn.o: .\spinbtn.cpp | |
174 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
175 | ||
176 | $(OBJS)\widgets_static.o: .\static.cpp | |
177 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
178 | ||
179 | $(OBJS)\widgets_textctrl.o: .\textctrl.cpp | |
180 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
181 | ||
182 | $(OBJS)\widgets_widgets.o: .\widgets.cpp | |
183 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
184 | ||
185 | $(OBJS)\widgets_widgets_rc.o: .\widgets.rc | |
25a73439 | 186 | 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 $(LIBDIRNAME) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_1) |
3b20263d VS |
187 | |
188 | clean: | |
189 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
190 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe | |
191 | ||
25a73439 VS |
192 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets_rc.o |
193 | $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 | |
3b20263d | 194 | |
250700e4 | 195 | .PHONY: all clean |