]>
Commit | Line | Data |
---|---|---|
cecc483e VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
162a956b | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
cecc483e VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
c33fae85 | 7 | include ../../build/msw/config.gcc |
cecc483e VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
3f55f5b8 VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
162a956b | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
21 | WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \ |
22 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
162a956b JS |
23 | -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \ |
24 | $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \ | |
25 | $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
26 | WXRC_OBJECTS = \ |
27 | $(OBJS)\wxrc_wxrc.o | |
cecc483e VS |
28 | |
29 | ### Conditionally set variables: ### | |
30 | ||
31 | ifeq ($(GCC_VERSION),2.95) | |
32 | GCCFLAGS = -fvtable-thunks | |
33 | endif | |
34 | ifeq ($(USE_GUI),0) | |
35 | PORTNAME = base | |
36 | endif | |
37 | ifeq ($(USE_GUI),1) | |
38 | PORTNAME = msw | |
39 | endif | |
40 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
41 | ifeq ($(DEBUG_FLAG),default) |
42 | WXDEBUGFLAG = d | |
43 | endif | |
44 | endif | |
45 | ifeq ($(DEBUG_FLAG),1) | |
cecc483e VS |
46 | WXDEBUGFLAG = d |
47 | endif | |
cecc483e VS |
48 | ifeq ($(UNICODE),1) |
49 | WXUNICODEFLAG = u | |
50 | endif | |
51 | ifeq ($(WXUNIV),1) | |
52 | WXUNIVNAME = univ | |
53 | endif | |
b17c1746 DE |
54 | ifeq ($(SHARED),1) |
55 | WXDLLFLAG = dll | |
3f55f5b8 | 56 | endif |
162a956b JS |
57 | ifeq ($(SHARED),0) |
58 | LIBTYPE_SUFFIX = lib | |
59 | endif | |
60 | ifeq ($(SHARED),1) | |
61 | LIBTYPE_SUFFIX = dll | |
62 | endif | |
dd65d8c8 RN |
63 | ifeq ($(MONOLITHIC),0) |
64 | EXTRALIBS_FOR_BASE = | |
65 | endif | |
66 | ifeq ($(MONOLITHIC),1) | |
67 | EXTRALIBS_FOR_BASE = | |
68 | endif | |
d2ec8d84 VS |
69 | ifeq ($(USE_XRC),1) |
70 | __wxrc___depname = $(OBJS)\wxrc.exe | |
71 | endif | |
b17c1746 DE |
72 | ifeq ($(BUILD),debug) |
73 | __OPTIMIZEFLAG_2 = -O0 | |
cecc483e VS |
74 | endif |
75 | ifeq ($(BUILD),release) | |
b17c1746 | 76 | __OPTIMIZEFLAG_2 = -O2 |
3f55f5b8 | 77 | endif |
b17c1746 DE |
78 | ifeq ($(USE_EXCEPTIONS),0) |
79 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
3f55f5b8 | 80 | endif |
b17c1746 DE |
81 | ifeq ($(USE_EXCEPTIONS),1) |
82 | __EXCEPTIONSFLAG_4 = | |
3f55f5b8 | 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__ | |
cecc483e VS |
92 | endif |
93 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
94 | ifeq ($(DEBUG_FLAG),default) |
95 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
96 | endif | |
97 | endif | |
98 | ifeq ($(DEBUG_FLAG),1) | |
cecc483e VS |
99 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
100 | endif | |
b17c1746 DE |
101 | ifeq ($(UNICODE),1) |
102 | __UNICODE_DEFINE_p = -D_UNICODE | |
103 | endif | |
cecc483e VS |
104 | ifeq ($(SHARED),1) |
105 | __DLLFLAG_p = -DWXUSINGDLL | |
106 | endif | |
b17c1746 | 107 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
108 | __WXLIB_XML_p = \ |
109 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
a4ad36cd | 110 | endif |
b17c1746 | 111 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
112 | __WXLIB_BASE_p = \ |
113 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
a4ad36cd | 114 | endif |
b17c1746 DE |
115 | ifeq ($(MONOLITHIC),1) |
116 | __WXLIB_MONO_p = \ | |
c33fae85 | 117 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
a4ad36cd | 118 | endif |
b17c1746 | 119 | ifeq ($(USE_GUI),1) |
9c2d002b | 120 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
a4ad36cd | 121 | endif |
3f55f5b8 | 122 | ifeq ($(USE_GUI),1) |
9c2d002b | 123 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
3f55f5b8 VS |
124 | endif |
125 | ifeq ($(USE_GUI),1) | |
9c2d002b | 126 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3f55f5b8 | 127 | endif |
b17c1746 DE |
128 | ifeq ($(MSLU),1) |
129 | __UNICOWS_LIB_p = -lunicows | |
3f55f5b8 | 130 | endif |
b17c1746 DE |
131 | ifeq ($(BUILD),debug) |
132 | ifeq ($(DEBUG_INFO),default) | |
133 | __DEBUGINFO = -g | |
cecc483e | 134 | endif |
2265a2d5 | 135 | endif |
b17c1746 DE |
136 | ifeq ($(BUILD),release) |
137 | ifeq ($(DEBUG_INFO),default) | |
138 | __DEBUGINFO = | |
cecc483e | 139 | endif |
cecc483e | 140 | endif |
b17c1746 DE |
141 | ifeq ($(DEBUG_INFO),0) |
142 | __DEBUGINFO = | |
cecc483e | 143 | endif |
b17c1746 DE |
144 | ifeq ($(DEBUG_INFO),1) |
145 | __DEBUGINFO = -g | |
cecc483e VS |
146 | endif |
147 | ||
148 | ||
149 | all: $(OBJS) | |
150 | $(OBJS): | |
151 | -if not exist $(OBJS) mkdir $(OBJS) | |
152 | ||
153 | ### Targets: ### | |
154 | ||
d2ec8d84 | 155 | all: $(__wxrc___depname) |
cecc483e | 156 | |
cecc483e VS |
157 | clean: |
158 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
159 | -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe | |
160 | ||
d2ec8d84 | 161 | ifeq ($(USE_XRC),1) |
3f55f5b8 | 162 | $(OBJS)\wxrc.exe: $(WXRC_OBJECTS) |
dd65d8c8 | 163 | $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_XML_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 |
d2ec8d84 | 164 | endif |
cecc483e | 165 | |
b17c1746 DE |
166 | $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp |
167 | $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $< | |
168 | ||
cecc483e | 169 | .PHONY: all clean |
162a956b | 170 |