]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/console/makefile.gcc
Compile fix for sound without threads. Not sure
[wxWidgets.git] / samples / console / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.3 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
23 $(CXXFLAGS)
24CONSOLE_OBJECTS = \
25 $(OBJS)\console_console.o
26
27### Conditionally set variables: ###
28
29ifeq ($(GCC_VERSION),2.95)
30GCCFLAGS = -fvtable-thunks
31endif
32ifeq ($(USE_GUI),0)
33PORTNAME = base
34endif
35ifeq ($(USE_GUI),1)
36PORTNAME = msw
37endif
38ifeq ($(BUILD),debug)
39ifeq ($(DEBUG_FLAG),default)
40WXDEBUGFLAG = d
41endif
42endif
43ifeq ($(DEBUG_FLAG),1)
44WXDEBUGFLAG = d
45endif
46ifeq ($(UNICODE),1)
47WXUNICODEFLAG = u
48endif
49ifeq ($(WXUNIV),1)
50WXUNIVNAME = univ
51endif
52ifeq ($(SHARED),1)
53WXDLLFLAG = dll
54endif
55ifeq ($(BUILD),debug)
56__OPTIMIZEFLAG_2 = -O0
57endif
58ifeq ($(BUILD),release)
59__OPTIMIZEFLAG_2 = -O2
60endif
61ifeq ($(USE_EXCEPTIONS),0)
62__EXCEPTIONSFLAG_4 = -fno-rtti
63endif
64ifeq ($(USE_EXCEPTIONS),1)
65__EXCEPTIONSFLAG_4 =
66endif
67ifeq ($(USE_EXCEPTIONS),0)
68__EXCEPTIONSFLAG_5 = -fno-exceptions
69endif
70ifeq ($(USE_EXCEPTIONS),1)
71__EXCEPTIONSFLAG_5 =
72endif
73ifeq ($(WXUNIV),1)
74__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
75endif
76ifeq ($(BUILD),debug)
77ifeq ($(DEBUG_FLAG),default)
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80endif
81ifeq ($(DEBUG_FLAG),1)
82__DEBUG_DEFINE_p = -D__WXDEBUG__
83endif
84ifeq ($(UNICODE),1)
85__UNICODE_DEFINE_p = -D_UNICODE
86endif
87ifeq ($(SHARED),1)
88__DLLFLAG_p = -DWXUSINGDLL
89endif
90ifeq ($(MONOLITHIC),0)
91__WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net
92endif
93ifeq ($(MONOLITHIC),0)
94ifeq ($(USE_ODBC),1)
95__WXLIB_ODBC_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc
96endif
97endif
98ifeq ($(MONOLITHIC),0)
99__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
100endif
101ifeq ($(MONOLITHIC),1)
102__WXLIB_MONO_p = \
103 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
104endif
105ifeq ($(USE_GUI),1)
106__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
107endif
108ifeq ($(USE_GUI),1)
109__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
110endif
111ifeq ($(USE_GUI),1)
112__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
113endif
114ifeq ($(MSLU),1)
115__UNICOWS_LIB_p = -lunicows
116endif
117ifeq ($(SHARED),0)
118LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
119endif
120ifeq ($(SHARED),1)
121LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
122endif
123ifeq ($(BUILD),debug)
124ifeq ($(DEBUG_INFO),default)
125__DEBUGINFO = -g
126endif
127endif
128ifeq ($(BUILD),release)
129ifeq ($(DEBUG_INFO),default)
130__DEBUGINFO =
131endif
132endif
133ifeq ($(DEBUG_INFO),0)
134__DEBUGINFO =
135endif
136ifeq ($(DEBUG_INFO),1)
137__DEBUGINFO = -g
138endif
139
140
141all: $(OBJS)
142$(OBJS):
143 -if not exist $(OBJS) mkdir $(OBJS)
144
145### Targets: ###
146
147all: $(OBJS)\console.exe data
148
149clean:
150 -if exist $(OBJS)\*.o del $(OBJS)\*.o
151 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
152
153$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
154 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
155
156data:
157 if not exist $(OBJS) mkdir $(OBJS)
158 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
159
160$(OBJS)\console_console.o: ./console.cpp
161 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
162
163.PHONY: all clean data