]> git.saurik.com Git - wxWidgets.git/blob - samples/console/makefile.gcc
have CGImage Support in all OSX builds
[wxWidgets.git] / samples / console / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) \
25 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
26 CONSOLE_OBJECTS = \
27 $(OBJS)\console_console.o
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)
41 ifeq ($(DEBUG_FLAG),default)
42 WXDEBUGFLAG = d
43 endif
44 endif
45 ifeq ($(DEBUG_FLAG),1)
46 WXDEBUGFLAG = d
47 endif
48 ifeq ($(UNICODE),1)
49 WXUNICODEFLAG = u
50 endif
51 ifeq ($(WXUNIV),1)
52 WXUNIVNAME = univ
53 endif
54 ifeq ($(SHARED),1)
55 WXDLLFLAG = dll
56 endif
57 ifeq ($(SHARED),0)
58 LIBTYPE_SUFFIX = lib
59 endif
60 ifeq ($(SHARED),1)
61 LIBTYPE_SUFFIX = dll
62 endif
63 ifeq ($(MONOLITHIC),0)
64 EXTRALIBS_FOR_BASE =
65 endif
66 ifeq ($(MONOLITHIC),1)
67 EXTRALIBS_FOR_BASE =
68 endif
69 ifeq ($(BUILD),debug)
70 __OPTIMIZEFLAG_2 = -O0
71 endif
72 ifeq ($(BUILD),release)
73 __OPTIMIZEFLAG_2 = -O2
74 endif
75 ifeq ($(USE_EXCEPTIONS),0)
76 __EXCEPTIONSFLAG_4 = -fno-rtti
77 endif
78 ifeq ($(USE_EXCEPTIONS),1)
79 __EXCEPTIONSFLAG_4 =
80 endif
81 ifeq ($(USE_EXCEPTIONS),0)
82 __EXCEPTIONSFLAG_5 = -fno-exceptions
83 endif
84 ifeq ($(USE_EXCEPTIONS),1)
85 __EXCEPTIONSFLAG_5 =
86 endif
87 ifeq ($(WXUNIV),1)
88 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
89 endif
90 ifeq ($(BUILD),debug)
91 ifeq ($(DEBUG_FLAG),default)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
93 endif
94 endif
95 ifeq ($(DEBUG_FLAG),1)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 endif
98 ifeq ($(UNICODE),1)
99 __UNICODE_DEFINE_p = -D_UNICODE
100 endif
101 ifeq ($(SHARED),1)
102 __DLLFLAG_p = -DWXUSINGDLL
103 endif
104 ifeq ($(MONOLITHIC),0)
105 __WXLIB_NET_p = \
106 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
107 endif
108 ifeq ($(MONOLITHIC),0)
109 ifeq ($(USE_ODBC),1)
110 __WXLIB_ODBC_p = \
111 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
112 endif
113 endif
114 ifeq ($(MONOLITHIC),0)
115 __WXLIB_BASE_p = \
116 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
117 endif
118 ifeq ($(MONOLITHIC),1)
119 __WXLIB_MONO_p = \
120 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
121 endif
122 ifeq ($(USE_GUI),1)
123 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
124 endif
125 ifeq ($(USE_GUI),1)
126 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
127 endif
128 ifeq ($(USE_GUI),1)
129 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
130 endif
131 ifeq ($(MSLU),1)
132 __UNICOWS_LIB_p = -lunicows
133 endif
134 ifeq ($(BUILD),debug)
135 ifeq ($(DEBUG_INFO),default)
136 __DEBUGINFO = -g
137 endif
138 endif
139 ifeq ($(BUILD),release)
140 ifeq ($(DEBUG_INFO),default)
141 __DEBUGINFO =
142 endif
143 endif
144 ifeq ($(DEBUG_INFO),0)
145 __DEBUGINFO =
146 endif
147 ifeq ($(DEBUG_INFO),1)
148 __DEBUGINFO = -g
149 endif
150
151
152 all: $(OBJS)
153 $(OBJS):
154 -if not exist $(OBJS) mkdir $(OBJS)
155
156 ### Targets: ###
157
158 all: $(OBJS)\console.exe data
159
160 clean:
161 -if exist $(OBJS)\*.o del $(OBJS)\*.o
162 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
163
164 $(OBJS)\console.exe: $(CONSOLE_OBJECTS)
165 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_NET_p) $(__WXLIB_ODBC_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
166
167 data:
168 if not exist $(OBJS) mkdir $(OBJS)
169 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
170
171 $(OBJS)\console_console.o: ./console.cpp
172 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
173
174 .PHONY: all clean data
175