added Mingw makefiles
[wxWidgets.git] / samples / console / makefile.gcc
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]
14 BUILD = 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. 
18 CFG = 
19 # Standard preprocessor flags (common for CC and CXX) 
20 CPPFLAGS = 
21 # C++ compiler 
22 CXX = g++
23 # Standard flags for C++ 
24 CXXFLAGS = 
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]
28 GCC_VERSION = 3
29 # Standard linker flags 
30 LDFLAGS = 
31 # Multiple libraries or single huge monolithic one? [0,1]
32 MONOLITHIC = 1
33 # Is this official build by wxWindows developers? [0,1]
34 OFFICIAL_BUILD = 0
35 # What type of library to build? [0,1]
36 SHARED = 1
37 # Compile Unicode build of wxWindows? [0,1]
38 UNICODE = 0
39 # Build GUI libraries? [0,1]
40 USE_GUI = 1
41 # Build wxUniversal instead of native port? [0,1]
42 WXUNIV = 0
43
44 # -------------------------------------------------------------------------
45 # Do not modify the rest of this file!
46 # -------------------------------------------------------------------------
47
48 ### Variables: ###
49
50 OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
51 CONSOLE_CXXFLAGS = $(CPPFLAGS) -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)
52
53 ### Conditionally set variables: ###
54
55 ifeq ($(USE_GUI),0)
56 PORTNAME = base
57 endif
58 ifeq ($(USE_GUI),1)
59 PORTNAME = msw
60 endif
61 ifeq ($(BUILD),debug)
62 WXDEBUGFLAG = d
63 endif
64 ifeq ($(SHARED),1)
65 WXDLLFLAG = dll
66 endif
67 ifeq ($(UNICODE),1)
68 WXUNICODEFLAG = u
69 endif
70 ifeq ($(WXUNIV),1)
71 WXUNIVNAME = univ
72 endif
73 ifeq ($(BUILD),debug)
74 __DEBUG_DEFINE_p = -D__WXDEBUG__
75 endif
76 ifeq ($(SHARED),1)
77 __DLLFLAG_p = -DWXUSINGDLL
78 endif
79 ifeq ($(MONOLITHIC),0)
80 __MULTILIB_FLAG_p = -DwxUSE_GUI=0
81 endif
82 ifeq ($(UNICODE),1)
83 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
84 endif
85 ifeq ($(MONOLITHIC),0)
86 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
87 endif
88 ifeq ($(MONOLITHIC),1)
89 __WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
90 endif
91 ifeq ($(WXUNIV),1)
92 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93 endif
94
95
96 all: $(OBJS)
97 $(OBJS):
98         -if not exist $(OBJS) mkdir $(OBJS)
99
100 ### Targets: ###
101
102 all: $(OBJS)\console.exe data
103
104 $(OBJS)\console_console.o: .\console.cpp
105         $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
106
107 clean: 
108         -if exist $(OBJS)\*.o del $(OBJS)\*.o
109         -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
110         -if exist $(OBJS)\testdata.fc del $(OBJS)\testdata.fc
111
112 $(OBJS)\console.exe: $(OBJS)\console_console.o
113         $(CXX) -o $@  $(OBJS)\console_console.o $(LDFLAGS) -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
114
115 data: 
116         if not exist $(OBJS) mkdir $(OBJS)
117         for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
118
119 install: all
120
121 uninstall: 
122
123 .PHONY: all