]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
wxConvGdk is not used anymore
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
3b20263d
VS
1
2# =========================================================================
3# This makefile was generated by
4# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
5# Do not modify, all changes will be overwritten!
6# =========================================================================
7
8
9# -------------------------------------------------------------------------
10# These are configurable options:
11# -------------------------------------------------------------------------
12
13# Type of compiled binaries [debug,release]
14BUILD = release
15# Name of your custom configuration. This affects directory
16# where object files are stored as well as the location of
17# compiled .lib files and setup.h under the lib/ toplevel directory.
18CFG =
19# Standard preprocessor flags (common for CC and CXX)
20CPPFLAGS =
21# C++ compiler
22CXX = g++
23# Standard flags for C++
24CXXFLAGS =
25# Set the version of your Mingw installation here.
26# "3" ...... this is for Mingw 2.0 or newer that cames with gcc3
27# "2.95" ... for Mingw 1.1 or any of the older versions [3,2.95]
28GCC_VERSION = 3
29# Standard linker flags
30LDFLAGS =
31# Multiple libraries or single huge monolithic one? [0,1]
32MONOLITHIC = 1
33# Is this official build by wxWindows developers? [0,1]
34OFFICIAL_BUILD = 0
35# What type of library to build? [0,1]
36SHARED = 1
37# Compile Unicode build of wxWindows? [0,1]
38UNICODE = 0
39# Build GUI libraries? [0,1]
40USE_GUI = 1
41# Build wxUniversal instead of native port? [0,1]
42WXUNIV = 0
43
44# -------------------------------------------------------------------------
45# Do not modify the rest of this file!
46# -------------------------------------------------------------------------
47
48### Variables: ###
49
50OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3fe8bc14 51CONSOLE_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. $(__DLLFLAG_p) $(__MULTILIB_FLAG_p) $(CXXFLAGS)
3b20263d
VS
52
53### Conditionally set variables: ###
54
3fe8bc14
VS
55ifeq ($(GCC_VERSION),2.95)
56GCCFLAGS = -fvtable-thunks
57endif
3b20263d
VS
58ifeq ($(USE_GUI),0)
59PORTNAME = base
60endif
61ifeq ($(USE_GUI),1)
62PORTNAME = msw
63endif
64ifeq ($(BUILD),debug)
65WXDEBUGFLAG = d
66endif
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
69endif
70ifeq ($(UNICODE),1)
71WXUNICODEFLAG = u
72endif
73ifeq ($(WXUNIV),1)
74WXUNIVNAME = univ
75endif
76ifeq ($(BUILD),debug)
3fe8bc14
VS
77__DEBUGFLAG = -g
78endif
79ifeq ($(BUILD),release)
80__DEBUGFLAG =
81endif
82ifeq ($(BUILD),debug)
3b20263d
VS
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84endif
85ifeq ($(SHARED),1)
86__DLLFLAG_p = -DWXUSINGDLL
87endif
88ifeq ($(MONOLITHIC),0)
89__MULTILIB_FLAG_p = -DwxUSE_GUI=0
90endif
3fe8bc14
VS
91ifeq ($(BUILD),debug)
92__OPTIMIZEFLAG_2 = -O0
93endif
94ifeq ($(BUILD),release)
95__OPTIMIZEFLAG_2 = -O2
96endif
3b20263d
VS
97ifeq ($(UNICODE),1)
98__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
99endif
100ifeq ($(MONOLITHIC),0)
101__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
102endif
103ifeq ($(MONOLITHIC),1)
104__WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
105endif
106ifeq ($(WXUNIV),1)
107__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
108endif
109
110
111all: $(OBJS)
112$(OBJS):
113 -if not exist $(OBJS) mkdir $(OBJS)
114
115### Targets: ###
116
117all: $(OBJS)\console.exe data
118
119$(OBJS)\console_console.o: .\console.cpp
120 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
121
122clean:
123 -if exist $(OBJS)\*.o del $(OBJS)\*.o
124 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
125 -if exist $(OBJS)\testdata.fc del $(OBJS)\testdata.fc
126
127$(OBJS)\console.exe: $(OBJS)\console_console.o
3fe8bc14 128 $(CXX) -o $@ $(OBJS)\console_console.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) $(__WXLIB_MONO_p) $(__WXLIB_BASE_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d
VS
129
130data:
131 if not exist $(OBJS) mkdir $(OBJS)
132 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
133
134install: all
135
136uninstall:
137
3fe8bc14 138.PHONY: all clean install uninstall