]> git.saurik.com Git - wxWidgets.git/blame - samples/dragimag/makefile.gcc
regenerated after adding DEBUG_ options
[wxWidgets.git] / samples / dragimag / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
250700e4 7include ../../build/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
bdc408c4 15DRAGIMAG_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.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
3b20263d 16OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3b20263d
VS
17
18### Conditionally set variables: ###
19
250700e4
RD
20ifeq ($(GCC_VERSION),2.95)
21GCCFLAGS = -fvtable-thunks
22endif
3b20263d
VS
23ifeq ($(USE_GUI),0)
24PORTNAME = base
25endif
26ifeq ($(USE_GUI),1)
27PORTNAME = msw
28endif
29ifeq ($(BUILD),debug)
30WXDEBUGFLAG = d
31endif
32ifeq ($(SHARED),1)
33WXDLLFLAG = dll
34endif
35ifeq ($(UNICODE),1)
36WXUNICODEFLAG = u
37endif
38ifeq ($(WXUNIV),1)
39WXUNIVNAME = univ
40endif
41ifeq ($(BUILD),debug)
250700e4
RD
42__DEBUGFLAG = -g
43endif
44ifeq ($(BUILD),release)
45__DEBUGFLAG =
46endif
47ifeq ($(BUILD),debug)
3b20263d
VS
48__DEBUG_DEFINE_p = -D__WXDEBUG__
49endif
50ifeq ($(BUILD),debug)
51__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
52endif
53ifeq ($(SHARED),1)
54__DLLFLAG_p = -DWXUSINGDLL
55endif
56ifeq ($(SHARED),1)
57__DLLFLAG_p_1 = --define WXUSINGDLL
58endif
250700e4
RD
59ifeq ($(BUILD),debug)
60__OPTIMIZEFLAG_2 = -O0
61endif
62ifeq ($(BUILD),release)
63__OPTIMIZEFLAG_2 = -O2
64endif
3b20263d
VS
65ifeq ($(UNICODE),1)
66__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
67endif
68ifeq ($(UNICODE),1)
69__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
70endif
71ifeq ($(MONOLITHIC),0)
72__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
73endif
74ifeq ($(MONOLITHIC),0)
75__WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
76endif
77ifeq ($(MONOLITHIC),1)
78__WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
79endif
80ifeq ($(WXUNIV),1)
81__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
82endif
83ifeq ($(WXUNIV),1)
84__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
85endif
86
87
88all: $(OBJS)
89$(OBJS):
90 -if not exist $(OBJS) mkdir $(OBJS)
91
92### Targets: ###
93
94all: $(OBJS)\dragimag.exe data
95
96$(OBJS)\dragimag_dragimag.o: .\dragimag.cpp
97 $(CXX) -c -o $@ $(DRAGIMAG_CXXFLAGS) $<
98
99$(OBJS)\dragimag_dragimag_rc.o: .\dragimag.rc
bdc408c4 100 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 ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_1)
3b20263d
VS
101
102clean:
103 -if exist $(OBJS)\*.o del $(OBJS)\*.o
104 -if exist $(OBJS)\dragimag.exe del $(OBJS)\dragimag.exe
3b20263d
VS
105
106data:
107 if not exist $(OBJS) mkdir $(OBJS)
108 for %%f in (backgrnd.png shape01.png shape02.png shape03.png) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
109
110$(OBJS)\dragimag.exe: $(OBJS)\dragimag_dragimag.o $(OBJS)\dragimag_dragimag_rc.o
bdc408c4 111 $(CXX) -o $@ $(OBJS)\dragimag_dragimag.o $(OBJS)\dragimag_dragimag_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d 112
250700e4 113.PHONY: all clean