]> git.saurik.com Git - wxWidgets.git/blob - contrib/utils/wxrc/makefile.gcc
disable the first top level parent, not the topmost top level parent
[wxWidgets.git] / contrib / 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 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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)
23 WXRC_OBJECTS = \
24 $(OBJS)\wxrc_wxrc.o
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)
38 ifeq ($(DEBUG_FLAG),default)
39 WXDEBUGFLAG = d
40 endif
41 endif
42 ifeq ($(DEBUG_FLAG),1)
43 WXDEBUGFLAG = d
44 endif
45 ifeq ($(UNICODE),1)
46 WXUNICODEFLAG = u
47 endif
48 ifeq ($(WXUNIV),1)
49 WXUNIVNAME = univ
50 endif
51 ifeq ($(SHARED),1)
52 WXDLLFLAG = dll
53 endif
54 ifeq ($(BUILD),debug)
55 __OPTIMIZEFLAG_2 = -O0
56 endif
57 ifeq ($(BUILD),release)
58 __OPTIMIZEFLAG_2 = -O2
59 endif
60 ifeq ($(USE_EXCEPTIONS),0)
61 __EXCEPTIONSFLAG_4 = -fno-rtti
62 endif
63 ifeq ($(USE_EXCEPTIONS),1)
64 __EXCEPTIONSFLAG_4 =
65 endif
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__
74 endif
75 ifeq ($(BUILD),debug)
76 ifeq ($(DEBUG_FLAG),default)
77 __DEBUG_DEFINE_p = -D__WXDEBUG__
78 endif
79 endif
80 ifeq ($(DEBUG_FLAG),1)
81 __DEBUG_DEFINE_p = -D__WXDEBUG__
82 endif
83 ifeq ($(UNICODE),1)
84 __UNICODE_DEFINE_p = -D_UNICODE
85 endif
86 ifeq ($(SHARED),1)
87 __DLLFLAG_p = -DWXUSINGDLL
88 endif
89 ifeq ($(MONOLITHIC),0)
90 __WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
91 endif
92 ifeq ($(MONOLITHIC),0)
93 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
94 endif
95 ifeq ($(MONOLITHIC),1)
96 __WXLIB_MONO_p = \
97 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
98 endif
99 ifeq ($(USE_GUI),1)
100 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
101 endif
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
108 ifeq ($(MSLU),1)
109 __UNICOWS_LIB_p = -lunicows
110 endif
111 ifeq ($(SHARED),0)
112 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
113 endif
114 ifeq ($(SHARED),1)
115 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
116 endif
117 ifeq ($(BUILD),debug)
118 ifeq ($(DEBUG_INFO),default)
119 __DEBUGINFO = -g
120 endif
121 endif
122 ifeq ($(BUILD),release)
123 ifeq ($(DEBUG_INFO),default)
124 __DEBUGINFO =
125 endif
126 endif
127 ifeq ($(DEBUG_INFO),0)
128 __DEBUGINFO =
129 endif
130 ifeq ($(DEBUG_INFO),1)
131 __DEBUGINFO = -g
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
143 clean:
144 -if exist $(OBJS)\*.o del $(OBJS)\*.o
145 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
146
147 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
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$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
149
150 $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
151 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
152
153 .PHONY: all clean