]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
new wxUSE_xxx variables must be in chkconf.h
[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
250700e4 7include ../../build/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
bdc408c4 15CONSOLE_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(__MULTILIB_FLAG_p) $(CXXFLAGS)
250700e4 16OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3b20263d
VS
17
18### Conditionally set variables: ###
19
3fe8bc14
VS
20ifeq ($(GCC_VERSION),2.95)
21GCCFLAGS = -fvtable-thunks
22endif
3b20263d
VS
23ifeq ($(USE_GUI),0)
24PORTNAME = base
25endif
26ifeq ($(USE_GUI),1)
27PORTNAME = msw
28endif
29ifeq ($(BUILD),debug)
30WXDEBUGFLAG = d
31endif
32ifeq ($(SHARED),1)
33WXDLLFLAG = dll
34endif
35ifeq ($(UNICODE),1)
36WXUNICODEFLAG = u
37endif
38ifeq ($(WXUNIV),1)
39WXUNIVNAME = univ
40endif
41ifeq ($(BUILD),debug)
3fe8bc14
VS
42__DEBUGFLAG = -g
43endif
44ifeq ($(BUILD),release)
45__DEBUGFLAG =
46endif
47ifeq ($(BUILD),debug)
3b20263d
VS
48__DEBUG_DEFINE_p = -D__WXDEBUG__
49endif
50ifeq ($(SHARED),1)
51__DLLFLAG_p = -DWXUSINGDLL
52endif
53ifeq ($(MONOLITHIC),0)
54__MULTILIB_FLAG_p = -DwxUSE_GUI=0
55endif
3fe8bc14
VS
56ifeq ($(BUILD),debug)
57__OPTIMIZEFLAG_2 = -O0
58endif
59ifeq ($(BUILD),release)
60__OPTIMIZEFLAG_2 = -O2
61endif
3b20263d
VS
62ifeq ($(UNICODE),1)
63__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
64endif
65ifeq ($(MONOLITHIC),0)
66__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
67endif
68ifeq ($(MONOLITHIC),1)
69__WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
70endif
71ifeq ($(WXUNIV),1)
72__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
73endif
74
75
76all: $(OBJS)
77$(OBJS):
78 -if not exist $(OBJS) mkdir $(OBJS)
79
80### Targets: ###
81
82all: $(OBJS)\console.exe data
83
84$(OBJS)\console_console.o: .\console.cpp
85 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
86
87clean:
88 -if exist $(OBJS)\*.o del $(OBJS)\*.o
89 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3b20263d
VS
90
91$(OBJS)\console.exe: $(OBJS)\console_console.o
bdc408c4 92 $(CXX) -o $@ $(OBJS)\console_console.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d
VS
93
94data:
95 if not exist $(OBJS) mkdir $(OBJS)
96 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
97
250700e4 98.PHONY: all clean