]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/console/makefile.gcc
removed a printf()
[wxWidgets.git] / samples / console / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
18 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
19 $(CXXFLAGS)
20CONSOLE_OBJECTS = \
21 $(OBJS)\console_console.o
22OBJS = \
23 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
24SETUPHDIR = \
25 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
26
27### Conditionally set variables: ###
28
29ifeq ($(GCC_VERSION),2.95)
30GCCFLAGS = -fvtable-thunks
31endif
32ifeq ($(SHARED),0)
33LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
34endif
35ifeq ($(SHARED),1)
36LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
37endif
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
50WXDEBUGFLAG = d
51endif
52ifeq ($(SHARED),1)
53WXDLLFLAG = dll
54endif
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
61ifeq ($(BUILD),debug)
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO = -g
64endif
65endif
66ifeq ($(BUILD),release)
67ifeq ($(DEBUG_INFO),default)
68__DEBUGINFO =
69endif
70endif
71ifeq ($(DEBUG_INFO),0)
72__DEBUGINFO =
73endif
74ifeq ($(DEBUG_INFO),1)
75__DEBUGINFO = -g
76endif
77ifeq ($(BUILD),debug)
78ifeq ($(DEBUG_FLAG),default)
79__DEBUG_DEFINE_p = -D__WXDEBUG__
80endif
81endif
82ifeq ($(DEBUG_FLAG),1)
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84endif
85ifeq ($(SHARED),1)
86__DLLFLAG_p = -DWXUSINGDLL
87endif
88ifeq ($(USE_EXCEPTIONS),0)
89__EXCEPTIONSFLAG_4 = -fno-rtti
90endif
91ifeq ($(USE_EXCEPTIONS),1)
92__EXCEPTIONSFLAG_4 =
93endif
94ifeq ($(USE_EXCEPTIONS),0)
95__EXCEPTIONSFLAG_5 = -fno-exceptions
96endif
97ifeq ($(USE_EXCEPTIONS),1)
98__EXCEPTIONSFLAG_5 =
99endif
100ifeq ($(USE_GUI),1)
101__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
102endif
103ifeq ($(USE_GUI),1)
104__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
105endif
106ifeq ($(USE_GUI),1)
107__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
108endif
109ifeq ($(BUILD),debug)
110__OPTIMIZEFLAG_2 = -O0
111endif
112ifeq ($(BUILD),release)
113__OPTIMIZEFLAG_2 = -O2
114endif
115ifeq ($(UNICODE),1)
116__UNICODE_DEFINE_p = -D_UNICODE
117endif
118ifeq ($(MSLU),1)
119__UNICOWS_LIB_p = -lunicows
120endif
121ifeq ($(MONOLITHIC),0)
122__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
123endif
124ifeq ($(MONOLITHIC),1)
125__WXLIB_MONO_p = \
126 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
127endif
128ifeq ($(WXUNIV),1)
129__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
130endif
131
132
133all: $(OBJS)
134$(OBJS):
135 -if not exist $(OBJS) mkdir $(OBJS)
136
137### Targets: ###
138
139all: $(OBJS)\console.exe data
140
141$(OBJS)\console_console.o: ./console.cpp
142 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
143
144clean:
145 -if exist $(OBJS)\*.o del $(OBJS)\*.o
146 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
147
148$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
149 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
150
151data:
152 if not exist $(OBJS) mkdir $(OBJS)
153 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
154
155.PHONY: all clean data