]> git.saurik.com Git - wxWidgets.git/blob - samples/console/makefile.gcc
Order of initializations according to class construction.
[wxWidgets.git] / samples / console / 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 CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
23 $(CXXFLAGS)
24 CONSOLE_OBJECTS = \
25 $(OBJS)\console_console.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 ($(BUILD),debug)
56 __OPTIMIZEFLAG_2 = -O0
57 endif
58 ifeq ($(BUILD),release)
59 __OPTIMIZEFLAG_2 = -O2
60 endif
61 ifeq ($(USE_EXCEPTIONS),0)
62 __EXCEPTIONSFLAG_4 = -fno-rtti
63 endif
64 ifeq ($(USE_EXCEPTIONS),1)
65 __EXCEPTIONSFLAG_4 =
66 endif
67 ifeq ($(USE_EXCEPTIONS),0)
68 __EXCEPTIONSFLAG_5 = -fno-exceptions
69 endif
70 ifeq ($(USE_EXCEPTIONS),1)
71 __EXCEPTIONSFLAG_5 =
72 endif
73 ifeq ($(WXUNIV),1)
74 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
75 endif
76 ifeq ($(BUILD),debug)
77 ifeq ($(DEBUG_FLAG),default)
78 __DEBUG_DEFINE_p = -D__WXDEBUG__
79 endif
80 endif
81 ifeq ($(DEBUG_FLAG),1)
82 __DEBUG_DEFINE_p = -D__WXDEBUG__
83 endif
84 ifeq ($(UNICODE),1)
85 __UNICODE_DEFINE_p = -D_UNICODE
86 endif
87 ifeq ($(SHARED),1)
88 __DLLFLAG_p = -DWXUSINGDLL
89 endif
90 ifeq ($(MONOLITHIC),0)
91 __WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net
92 endif
93 ifeq ($(MONOLITHIC),0)
94 ifeq ($(USE_ODBC),1)
95 __WXLIB_ODBC_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc
96 endif
97 endif
98 ifeq ($(MONOLITHIC),0)
99 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
100 endif
101 ifeq ($(MONOLITHIC),1)
102 __WXLIB_MONO_p = \
103 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
104 endif
105 ifeq ($(USE_GUI),1)
106 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
107 endif
108 ifeq ($(USE_GUI),1)
109 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
110 endif
111 ifeq ($(USE_GUI),1)
112 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
113 endif
114 ifeq ($(MSLU),1)
115 __UNICOWS_LIB_p = -lunicows
116 endif
117 ifeq ($(SHARED),0)
118 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
119 endif
120 ifeq ($(SHARED),1)
121 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
122 endif
123 ifeq ($(BUILD),debug)
124 ifeq ($(DEBUG_INFO),default)
125 __DEBUGINFO = -g
126 endif
127 endif
128 ifeq ($(BUILD),release)
129 ifeq ($(DEBUG_INFO),default)
130 __DEBUGINFO =
131 endif
132 endif
133 ifeq ($(DEBUG_INFO),0)
134 __DEBUGINFO =
135 endif
136 ifeq ($(DEBUG_INFO),1)
137 __DEBUGINFO = -g
138 endif
139
140
141 all: $(OBJS)
142 $(OBJS):
143 -if not exist $(OBJS) mkdir $(OBJS)
144
145 ### Targets: ###
146
147 all: $(OBJS)\console.exe data
148
149 clean:
150 -if exist $(OBJS)\*.o del $(OBJS)\*.o
151 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
152
153 $(OBJS)\console.exe: $(CONSOLE_OBJECTS)
154 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
155
156 data:
157 if not exist $(OBJS) mkdir $(OBJS)
158 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
159
160 $(OBJS)\console_console.o: ./console.cpp
161 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
162
163 .PHONY: all clean data