]> git.saurik.com Git - wxWidgets.git/blob - utils/wxrc/makefile.gcc
Allow to set the various buttons explicitly (and
[wxWidgets.git] / utils / wxrc / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
21 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
22 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) \
23 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
24 WXRC_OBJECTS = \
25 $(OBJS)\wxrc_wxrc.o
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)
39 ifeq ($(DEBUG_FLAG),default)
40 WXDEBUGFLAG = d
41 endif
42 endif
43 ifeq ($(DEBUG_FLAG),1)
44 WXDEBUGFLAG = d
45 endif
46 ifeq ($(UNICODE),1)
47 WXUNICODEFLAG = u
48 endif
49 ifeq ($(WXUNIV),1)
50 WXUNIVNAME = univ
51 endif
52 ifeq ($(SHARED),1)
53 WXDLLFLAG = dll
54 endif
55 ifeq ($(MONOLITHIC),0)
56 EXTRALIBS_FOR_BASE =
57 endif
58 ifeq ($(MONOLITHIC),1)
59 EXTRALIBS_FOR_BASE =
60 endif
61 ifeq ($(USE_XRC),1)
62 __wxrc___depname = $(OBJS)\wxrc.exe
63 endif
64 ifeq ($(BUILD),debug)
65 __OPTIMIZEFLAG_2 = -O0
66 endif
67 ifeq ($(BUILD),release)
68 __OPTIMIZEFLAG_2 = -O2
69 endif
70 ifeq ($(USE_EXCEPTIONS),0)
71 __EXCEPTIONSFLAG_4 = -fno-rtti
72 endif
73 ifeq ($(USE_EXCEPTIONS),1)
74 __EXCEPTIONSFLAG_4 =
75 endif
76 ifeq ($(USE_EXCEPTIONS),0)
77 __EXCEPTIONSFLAG_5 = -fno-exceptions
78 endif
79 ifeq ($(USE_EXCEPTIONS),1)
80 __EXCEPTIONSFLAG_5 =
81 endif
82 ifeq ($(WXUNIV),1)
83 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
84 endif
85 ifeq ($(BUILD),debug)
86 ifeq ($(DEBUG_FLAG),default)
87 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 endif
89 endif
90 ifeq ($(DEBUG_FLAG),1)
91 __DEBUG_DEFINE_p = -D__WXDEBUG__
92 endif
93 ifeq ($(UNICODE),1)
94 __UNICODE_DEFINE_p = -D_UNICODE
95 endif
96 ifeq ($(SHARED),1)
97 __DLLFLAG_p = -DWXUSINGDLL
98 endif
99 ifeq ($(MONOLITHIC),0)
100 __WXLIB_XML_p = \
101 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
102 endif
103 ifeq ($(MONOLITHIC),0)
104 __WXLIB_BASE_p = \
105 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
106 endif
107 ifeq ($(MONOLITHIC),1)
108 __WXLIB_MONO_p = \
109 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
110 endif
111 ifeq ($(USE_GUI),1)
112 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
113 endif
114 ifeq ($(USE_GUI),1)
115 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
116 endif
117 ifeq ($(USE_GUI),1)
118 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
119 endif
120 ifeq ($(MSLU),1)
121 __UNICOWS_LIB_p = -lunicows
122 endif
123 ifeq ($(SHARED),0)
124 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
125 endif
126 ifeq ($(SHARED),1)
127 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
128 endif
129 ifeq ($(BUILD),debug)
130 ifeq ($(DEBUG_INFO),default)
131 __DEBUGINFO = -g
132 endif
133 endif
134 ifeq ($(BUILD),release)
135 ifeq ($(DEBUG_INFO),default)
136 __DEBUGINFO =
137 endif
138 endif
139 ifeq ($(DEBUG_INFO),0)
140 __DEBUGINFO =
141 endif
142 ifeq ($(DEBUG_INFO),1)
143 __DEBUGINFO = -g
144 endif
145
146
147 all: $(OBJS)
148 $(OBJS):
149 -if not exist $(OBJS) mkdir $(OBJS)
150
151 ### Targets: ###
152
153 all: $(__wxrc___depname)
154
155 clean:
156 -if exist $(OBJS)\*.o del $(OBJS)\*.o
157 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
158
159 ifeq ($(USE_XRC),1)
160 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
161 $(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
162 endif
163
164 $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
165 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
166
167 .PHONY: all clean