]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
Applied patch [ 868373 ] Missed Unicode markup in menu sample
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
bdc408c4 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
3b20263d
VS
131ifeq ($(WXUNIV),1)
132__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
133endif
134
135
136all: $(OBJS)
137$(OBJS):
138 -if not exist $(OBJS) mkdir $(OBJS)
139
140### Targets: ###
141
142all: $(OBJS)\console.exe data
143
1c3a6972 144$(OBJS)\console_console.o: ./console.cpp
3b20263d
VS
145 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
146
147clean:
148 -if exist $(OBJS)\*.o del $(OBJS)\*.o
149 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3b20263d 150
25a73439 151$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
651bb0c9 152 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_NET_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
153
154data:
155 if not exist $(OBJS) mkdir $(OBJS)
156 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
157
fd9f42b6 158.PHONY: all clean data