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