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