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