]> git.saurik.com Git - wxWidgets.git/blob - samples/minimal/makefile.gcc
Fix unintialized pointer in wxCommandProcessor when
[wxWidgets.git] / samples / minimal / 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 MINIMAL_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) $(CXXFLAGS)
52
53 ### Conditionally set variables: ###
54
55 ifeq ($(GCC_VERSION),2.95)
56 GCCFLAGS = -fvtable-thunks
57 endif
58 ifeq ($(USE_GUI),0)
59 PORTNAME = base
60 endif
61 ifeq ($(USE_GUI),1)
62 PORTNAME = msw
63 endif
64 ifeq ($(BUILD),debug)
65 WXDEBUGFLAG = d
66 endif
67 ifeq ($(SHARED),1)
68 WXDLLFLAG = dll
69 endif
70 ifeq ($(UNICODE),1)
71 WXUNICODEFLAG = u
72 endif
73 ifeq ($(WXUNIV),1)
74 WXUNIVNAME = univ
75 endif
76 ifeq ($(BUILD),debug)
77 __DEBUGFLAG = -g
78 endif
79 ifeq ($(BUILD),release)
80 __DEBUGFLAG =
81 endif
82 ifeq ($(BUILD),debug)
83 __DEBUG_DEFINE_p = -D__WXDEBUG__
84 endif
85 ifeq ($(BUILD),debug)
86 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
87 endif
88 ifeq ($(SHARED),1)
89 __DLLFLAG_p = -DWXUSINGDLL
90 endif
91 ifeq ($(SHARED),1)
92 __DLLFLAG_p_1 = --define WXUSINGDLL
93 endif
94 ifeq ($(BUILD),debug)
95 __OPTIMIZEFLAG_2 = -O0
96 endif
97 ifeq ($(BUILD),release)
98 __OPTIMIZEFLAG_2 = -O2
99 endif
100 ifeq ($(UNICODE),1)
101 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
102 endif
103 ifeq ($(UNICODE),1)
104 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
105 endif
106 ifeq ($(MONOLITHIC),0)
107 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
108 endif
109 ifeq ($(MONOLITHIC),0)
110 __WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
111 endif
112 ifeq ($(MONOLITHIC),1)
113 __WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
114 endif
115 ifeq ($(WXUNIV),1)
116 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
117 endif
118 ifeq ($(WXUNIV),1)
119 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
120 endif
121
122
123 all: $(OBJS)
124 $(OBJS):
125 -if not exist $(OBJS) mkdir $(OBJS)
126
127 ### Targets: ###
128
129 all: $(OBJS)\minimal.exe
130
131 $(OBJS)\minimal_minimal.o: .\minimal.cpp
132 $(CXX) -c -o $@ $(MINIMAL_CXXFLAGS) $<
133
134 $(OBJS)\minimal_minimal_rc.o: .\minimal.rc
135 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir ./../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir . $(__DLLFLAG_p_1)
136
137 clean:
138 -if exist $(OBJS)\*.o del $(OBJS)\*.o
139 -if exist $(OBJS)\minimal.exe del $(OBJS)\minimal.exe
140
141 install: all
142
143 $(OBJS)\minimal.exe: $(OBJS)\minimal_minimal.o $(OBJS)\minimal_minimal_rc.o
144 $(CXX) -o $@ $(OBJS)\minimal_minimal.o $(OBJS)\minimal_minimal_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_MONO_p) $(__WXLIB_CORE_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
145
146 uninstall:
147
148 .PHONY: all clean install uninstall