]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
Typos fixed and further clarification of the Python situation on Panther
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
69ada15b 3# Bakefile 0.1.1 (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
c2149c93 15CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
25a73439 16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 17 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
c2149c93
VS
18 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
19 $(CXXFLAGS)
25a73439
VS
20CONSOLE_OBJECTS = \
21 $(OBJS)\console_console.o
25a73439
VS
22OBJS = \
23 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
24SETUPHDIR = \
25 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d
VS
26
27### Conditionally set variables: ###
28
3fe8bc14
VS
29ifeq ($(GCC_VERSION),2.95)
30GCCFLAGS = -fvtable-thunks
31endif
75a0a7b7
VS
32ifeq ($(SHARED),0)
33LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
34endif
35ifeq ($(SHARED),1)
36LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
37endif
3b20263d
VS
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
25a73439
VS
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
50WXDEBUGFLAG = d
51endif
52ifeq ($(SHARED),1)
53WXDLLFLAG = dll
54endif
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
61ifeq ($(BUILD),debug)
25a73439
VS
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO = -g
64endif
3fe8bc14
VS
65endif
66ifeq ($(BUILD),release)
25a73439
VS
67ifeq ($(DEBUG_INFO),default)
68__DEBUGINFO =
69endif
70endif
71ifeq ($(DEBUG_INFO),0)
72__DEBUGINFO =
73endif
74ifeq ($(DEBUG_INFO),1)
75__DEBUGINFO = -g
3fe8bc14
VS
76endif
77ifeq ($(BUILD),debug)
25a73439
VS
78ifeq ($(DEBUG_FLAG),default)
79__DEBUG_DEFINE_p = -D__WXDEBUG__
80endif
81endif
82ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84endif
85ifeq ($(SHARED),1)
86__DLLFLAG_p = -DWXUSINGDLL
87endif
b71531ad
VZ
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
25a73439
VS
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
3fe8bc14
VS
109ifeq ($(BUILD),debug)
110__OPTIMIZEFLAG_2 = -O0
111endif
112ifeq ($(BUILD),release)
113__OPTIMIZEFLAG_2 = -O2
114endif
3b20263d 115ifeq ($(UNICODE),1)
ec08d395 116__UNICODE_DEFINE_p = -D_UNICODE
3b20263d 117endif
4e209a20
VS
118ifeq ($(MSLU),1)
119__UNICOWS_LIB_p = -lunicows
120endif
3b20263d
VS
121ifeq ($(MONOLITHIC),0)
122__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
123endif
124ifeq ($(MONOLITHIC),1)
25a73439
VS
125__WXLIB_MONO_p = \
126 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d 127endif
651bb0c9
VS
128ifeq ($(MONOLITHIC),0)
129__WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net
130endif
548d77c7
VS
131ifeq ($(MONOLITHIC),0)
132__WXLIB_ODBC_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc
133endif
3b20263d
VS
134ifeq ($(WXUNIV),1)
135__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
136endif
137
138
139all: $(OBJS)
140$(OBJS):
141 -if not exist $(OBJS) mkdir $(OBJS)
142
143### Targets: ###
144
145all: $(OBJS)\console.exe data
146
1c3a6972 147$(OBJS)\console_console.o: ./console.cpp
3b20263d
VS
148 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
149
150clean:
151 -if exist $(OBJS)\*.o del $(OBJS)\*.o
152 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3b20263d 153
25a73439 154$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
548d77c7 155 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d
VS
156
157data:
158 if not exist $(OBJS) mkdir $(OBJS)
159 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
160
fd9f42b6 161.PHONY: all clean data