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