]> git.saurik.com Git - wxWidgets.git/blob - samples/console/makefile.gcc
document that not skipping left click event results in focus not being given to the...
[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 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
24 $(CXXFLAGS)
25 CONSOLE_OBJECTS = \
26 $(OBJS)\console_console.o
27
28 ### Conditionally set variables: ###
29
30 ifeq ($(GCC_VERSION),2.95)
31 GCCFLAGS = -fvtable-thunks
32 endif
33 ifeq ($(USE_GUI),0)
34 PORTNAME = base
35 endif
36 ifeq ($(USE_GUI),1)
37 PORTNAME = msw
38 endif
39 ifeq ($(BUILD),debug)
40 ifeq ($(DEBUG_FLAG),default)
41 WXDEBUGFLAG = d
42 endif
43 endif
44 ifeq ($(DEBUG_FLAG),1)
45 WXDEBUGFLAG = d
46 endif
47 ifeq ($(UNICODE),1)
48 WXUNICODEFLAG = u
49 endif
50 ifeq ($(WXUNIV),1)
51 WXUNIVNAME = univ
52 endif
53 ifeq ($(SHARED),1)
54 WXDLLFLAG = dll
55 endif
56 ifeq ($(BUILD),debug)
57 __OPTIMIZEFLAG_2 = -O0
58 endif
59 ifeq ($(BUILD),release)
60 __OPTIMIZEFLAG_2 = -O2
61 endif
62 ifeq ($(USE_EXCEPTIONS),0)
63 __EXCEPTIONSFLAG_4 = -fno-rtti
64 endif
65 ifeq ($(USE_EXCEPTIONS),1)
66 __EXCEPTIONSFLAG_4 =
67 endif
68 ifeq ($(USE_EXCEPTIONS),0)
69 __EXCEPTIONSFLAG_5 = -fno-exceptions
70 endif
71 ifeq ($(USE_EXCEPTIONS),1)
72 __EXCEPTIONSFLAG_5 =
73 endif
74 ifeq ($(WXUNIV),1)
75 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
76 endif
77 ifeq ($(BUILD),debug)
78 ifeq ($(DEBUG_FLAG),default)
79 __DEBUG_DEFINE_p = -D__WXDEBUG__
80 endif
81 endif
82 ifeq ($(DEBUG_FLAG),1)
83 __DEBUG_DEFINE_p = -D__WXDEBUG__
84 endif
85 ifeq ($(UNICODE),1)
86 __UNICODE_DEFINE_p = -D_UNICODE
87 endif
88 ifeq ($(SHARED),1)
89 __DLLFLAG_p = -DWXUSINGDLL
90 endif
91 ifeq ($(MONOLITHIC),0)
92 __WXLIB_NET_p = \
93 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
94 endif
95 ifeq ($(MONOLITHIC),0)
96 ifeq ($(USE_ODBC),1)
97 __WXLIB_ODBC_p = \
98 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
99 endif
100 endif
101 ifeq ($(MONOLITHIC),0)
102 __WXLIB_BASE_p = \
103 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
104 endif
105 ifeq ($(MONOLITHIC),1)
106 __WXLIB_MONO_p = \
107 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
108 endif
109 ifeq ($(USE_GUI),1)
110 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
111 endif
112 ifeq ($(USE_GUI),1)
113 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
114 endif
115 ifeq ($(USE_GUI),1)
116 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
117 endif
118 ifeq ($(MSLU),1)
119 __UNICOWS_LIB_p = -lunicows
120 endif
121 ifeq ($(SHARED),0)
122 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
123 endif
124 ifeq ($(SHARED),1)
125 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
126 endif
127 ifeq ($(BUILD),debug)
128 ifeq ($(DEBUG_INFO),default)
129 __DEBUGINFO = -g
130 endif
131 endif
132 ifeq ($(BUILD),release)
133 ifeq ($(DEBUG_INFO),default)
134 __DEBUGINFO =
135 endif
136 endif
137 ifeq ($(DEBUG_INFO),0)
138 __DEBUGINFO =
139 endif
140 ifeq ($(DEBUG_INFO),1)
141 __DEBUGINFO = -g
142 endif
143
144
145 all: $(OBJS)
146 $(OBJS):
147 -if not exist $(OBJS) mkdir $(OBJS)
148
149 ### Targets: ###
150
151 all: $(OBJS)\console.exe data
152
153 clean:
154 -if exist $(OBJS)\*.o del $(OBJS)\*.o
155 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
156
157 $(OBJS)\console.exe: $(CONSOLE_OBJECTS)
158 $(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
159
160 data:
161 if not exist $(OBJS) mkdir $(OBJS)
162 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
163
164 $(OBJS)\console_console.o: ./console.cpp
165 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
166
167 .PHONY: all clean data