]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/animate/makefile.gcc
added VC++ project files
[wxWidgets.git] / contrib / samples / animate / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
3f55f5b8
VS
15ANITEST_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
18 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
19 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
20 $(__DLLFLAG_p) -I.\..\..\include $(CXXFLAGS)
21ANITEST_OBJECTS = \
22 $(OBJS)\anitest_anitest.o
23LIBDIRNAME = \
24 .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25OBJS = \
26 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
250700e4
RD
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)
3f55f5b8
VS
40ifeq ($(DEBUG_FLAG),default)
41WXDEBUGFLAG = d
42endif
43endif
44ifeq ($(DEBUG_FLAG),1)
250700e4
RD
45WXDEBUGFLAG = d
46endif
47ifeq ($(SHARED),1)
48WXDLLFLAG = dll
49endif
50ifeq ($(UNICODE),1)
51WXUNICODEFLAG = u
52endif
53ifeq ($(WXUNIV),1)
54WXUNIVNAME = univ
55endif
56ifeq ($(BUILD),debug)
3f55f5b8
VS
57ifeq ($(DEBUG_INFO),default)
58__DEBUGINFO = -g
59endif
250700e4
RD
60endif
61ifeq ($(BUILD),release)
3f55f5b8
VS
62ifeq ($(DEBUG_INFO),default)
63__DEBUGINFO =
64endif
65endif
66ifeq ($(DEBUG_INFO),0)
67__DEBUGINFO =
68endif
69ifeq ($(DEBUG_INFO),1)
70__DEBUGINFO = -g
250700e4
RD
71endif
72ifeq ($(BUILD),debug)
3f55f5b8
VS
73ifeq ($(DEBUG_FLAG),default)
74__DEBUG_DEFINE_p = -D__WXDEBUG__
75endif
76endif
77ifeq ($(DEBUG_FLAG),1)
250700e4
RD
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80ifeq ($(SHARED),1)
81__DLLFLAG_p = -DWXUSINGDLL
82endif
3f55f5b8
VS
83ifeq ($(USE_GUI),1)
84__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
85endif
86ifeq ($(USE_GUI),1)
87__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
88endif
89ifeq ($(USE_GUI),1)
90__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
91endif
250700e4
RD
92ifeq ($(BUILD),debug)
93__OPTIMIZEFLAG_2 = -O0
94endif
95ifeq ($(BUILD),release)
96__OPTIMIZEFLAG_2 = -O2
97endif
98ifeq ($(UNICODE),1)
99__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
100endif
101ifeq ($(MONOLITHIC),0)
102__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
103endif
104ifeq ($(MONOLITHIC),0)
3f55f5b8
VS
105__WXLIB_CORE_p = \
106 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
250700e4
RD
107endif
108ifeq ($(MONOLITHIC),1)
3f55f5b8
VS
109__WXLIB_MONO_p = \
110 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
250700e4
RD
111endif
112ifeq ($(WXUNIV),1)
113__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114endif
115
116
117all: $(OBJS)
118$(OBJS):
119 -if not exist $(OBJS) mkdir $(OBJS)
120
121### Targets: ###
122
123all: $(OBJS)\anitest.exe data
124
125$(OBJS)\anitest_anitest.o: .\anitest.cpp
126 $(CXX) -c -o $@ $(ANITEST_CXXFLAGS) $<
127
3f55f5b8
VS
128$(OBJS)\anitest.exe: $(ANITEST_OBJECTS)
129 $(CXX) -o $@ $(ANITEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
250700e4
RD
130
131clean:
132 -if exist $(OBJS)\*.o del $(OBJS)\*.o
133 -if exist $(OBJS)\anitest.exe del $(OBJS)\anitest.exe
134
135data:
136 if not exist $(OBJS) mkdir $(OBJS)
137 for %%f in (bttrfly.gif hooked.gif tbttrfly.gif mondrian.ico) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
138
139.PHONY: all clean