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