]>
Commit | Line | Data |
---|---|---|
cecc483e VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (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) | |
75a0a7b7 VS |
18 | SETUPHDIR = \ |
19 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
20 | WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \ |
21 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
c33fae85 | 22 | -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) \ |
9bfe7ad9 | 23 | $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS) |
3f55f5b8 VS |
24 | WXRC_OBJECTS = \ |
25 | $(OBJS)\wxrc_wxrc.o | |
cecc483e VS |
26 | |
27 | ### Conditionally set variables: ### | |
28 | ||
29 | ifeq ($(GCC_VERSION),2.95) | |
30 | GCCFLAGS = -fvtable-thunks | |
31 | endif | |
32 | ifeq ($(USE_GUI),0) | |
33 | PORTNAME = base | |
34 | endif | |
35 | ifeq ($(USE_GUI),1) | |
36 | PORTNAME = msw | |
37 | endif | |
38 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
39 | ifeq ($(DEBUG_FLAG),default) |
40 | WXDEBUGFLAG = d | |
41 | endif | |
42 | endif | |
43 | ifeq ($(DEBUG_FLAG),1) | |
cecc483e VS |
44 | WXDEBUGFLAG = d |
45 | endif | |
cecc483e VS |
46 | ifeq ($(UNICODE),1) |
47 | WXUNICODEFLAG = u | |
48 | endif | |
49 | ifeq ($(WXUNIV),1) | |
50 | WXUNIVNAME = univ | |
51 | endif | |
b17c1746 DE |
52 | ifeq ($(SHARED),1) |
53 | WXDLLFLAG = dll | |
3f55f5b8 | 54 | endif |
d2ec8d84 VS |
55 | ifeq ($(USE_XRC),1) |
56 | __wxrc___depname = $(OBJS)\wxrc.exe | |
57 | endif | |
b17c1746 DE |
58 | ifeq ($(BUILD),debug) |
59 | __OPTIMIZEFLAG_2 = -O0 | |
cecc483e VS |
60 | endif |
61 | ifeq ($(BUILD),release) | |
b17c1746 | 62 | __OPTIMIZEFLAG_2 = -O2 |
3f55f5b8 | 63 | endif |
b17c1746 DE |
64 | ifeq ($(USE_EXCEPTIONS),0) |
65 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
3f55f5b8 | 66 | endif |
b17c1746 DE |
67 | ifeq ($(USE_EXCEPTIONS),1) |
68 | __EXCEPTIONSFLAG_4 = | |
3f55f5b8 | 69 | endif |
b17c1746 DE |
70 | ifeq ($(USE_EXCEPTIONS),0) |
71 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
72 | endif | |
73 | ifeq ($(USE_EXCEPTIONS),1) | |
74 | __EXCEPTIONSFLAG_5 = | |
75 | endif | |
76 | ifeq ($(WXUNIV),1) | |
77 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
cecc483e VS |
78 | endif |
79 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
80 | ifeq ($(DEBUG_FLAG),default) |
81 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
82 | endif | |
83 | endif | |
84 | ifeq ($(DEBUG_FLAG),1) | |
cecc483e VS |
85 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
86 | endif | |
b17c1746 DE |
87 | ifeq ($(UNICODE),1) |
88 | __UNICODE_DEFINE_p = -D_UNICODE | |
89 | endif | |
cecc483e VS |
90 | ifeq ($(SHARED),1) |
91 | __DLLFLAG_p = -DWXUSINGDLL | |
92 | endif | |
b17c1746 | 93 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
94 | __WXLIB_XML_p = \ |
95 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
a4ad36cd | 96 | endif |
b17c1746 | 97 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
98 | __WXLIB_BASE_p = \ |
99 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
a4ad36cd | 100 | endif |
b17c1746 DE |
101 | ifeq ($(MONOLITHIC),1) |
102 | __WXLIB_MONO_p = \ | |
c33fae85 | 103 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
a4ad36cd | 104 | endif |
b17c1746 | 105 | ifeq ($(USE_GUI),1) |
9c2d002b | 106 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
a4ad36cd | 107 | endif |
3f55f5b8 | 108 | ifeq ($(USE_GUI),1) |
9c2d002b | 109 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
3f55f5b8 VS |
110 | endif |
111 | ifeq ($(USE_GUI),1) | |
9c2d002b | 112 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3f55f5b8 | 113 | endif |
b17c1746 DE |
114 | ifeq ($(MSLU),1) |
115 | __UNICOWS_LIB_p = -lunicows | |
3f55f5b8 | 116 | endif |
b17c1746 | 117 | ifeq ($(SHARED),0) |
c33fae85 | 118 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) |
cecc483e | 119 | endif |
b17c1746 | 120 | ifeq ($(SHARED),1) |
c33fae85 | 121 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) |
cecc483e | 122 | endif |
b17c1746 DE |
123 | ifeq ($(BUILD),debug) |
124 | ifeq ($(DEBUG_INFO),default) | |
125 | __DEBUGINFO = -g | |
cecc483e | 126 | endif |
2265a2d5 | 127 | endif |
b17c1746 DE |
128 | ifeq ($(BUILD),release) |
129 | ifeq ($(DEBUG_INFO),default) | |
130 | __DEBUGINFO = | |
cecc483e | 131 | endif |
cecc483e | 132 | endif |
b17c1746 DE |
133 | ifeq ($(DEBUG_INFO),0) |
134 | __DEBUGINFO = | |
cecc483e | 135 | endif |
b17c1746 DE |
136 | ifeq ($(DEBUG_INFO),1) |
137 | __DEBUGINFO = -g | |
cecc483e VS |
138 | endif |
139 | ||
140 | ||
141 | all: $(OBJS) | |
142 | $(OBJS): | |
143 | -if not exist $(OBJS) mkdir $(OBJS) | |
144 | ||
145 | ### Targets: ### | |
146 | ||
d2ec8d84 | 147 | all: $(__wxrc___depname) |
cecc483e | 148 | |
cecc483e VS |
149 | clean: |
150 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
151 | -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe | |
152 | ||
d2ec8d84 | 153 | ifeq ($(USE_XRC),1) |
3f55f5b8 | 154 | $(OBJS)\wxrc.exe: $(WXRC_OBJECTS) |
9c2d002b | 155 | $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
d2ec8d84 | 156 | endif |
cecc483e | 157 | |
b17c1746 DE |
158 | $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp |
159 | $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $< | |
160 | ||
cecc483e | 161 | .PHONY: all clean |