]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/makefile.unx
Use template class instead of template function in wxVectorSort().
[wxWidgets.git] / samples / opengl / penguin / makefile.unx
CommitLineData
2add9e3c
RD
1# =========================================================================
2# This makefile was generated by
da8b1d4b 3# Bakefile 0.2.8 (http://www.bakefile.org)
2add9e3c
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
8b089c5e 6
d969af82 7
8b089c5e 8
2add9e3c
RD
9# -------------------------------------------------------------------------
10# These are configurable options:
11# -------------------------------------------------------------------------
8b089c5e 12
2add9e3c 13# C compiler
506e9b7e 14CC = gcc
8b089c5e 15
2add9e3c 16# C++ compiler
d12d9eda 17CXX = `$(WX_CONFIG) --cxx`
8b089c5e 18
2add9e3c 19# Standard flags for CC
8ece421c 20CFLAGS ?=
2add9e3c
RD
21
22# Standard flags for C++
8ece421c 23CXXFLAGS ?=
2add9e3c
RD
24
25# Standard preprocessor flags (common for CC and CXX)
8ece421c 26CPPFLAGS ?=
2add9e3c
RD
27
28# Standard linker flags
8ece421c 29LDFLAGS ?=
2add9e3c
RD
30
31# Location and arguments of wx-config script
8ece421c 32WX_CONFIG ?= wx-config
2add9e3c 33
8c9833d0 34# Port of the wx library to build against [gtk1,gtk2,msw,x11,motif,mgl,osx_cocoa,osx_carbon,dfb]
d12d9eda 35WX_PORT ?= $(shell $(WX_CONFIG) --query-toolkit)
2add9e3c 36
444833b3 37# Use DLL build of wx library to use? [0,1]
d12d9eda 38WX_SHARED ?= $(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
ae4ccf12 39
444833b3 40# Compile Unicode build of wxWidgets? [0,1]
d12d9eda 41WX_UNICODE ?= $(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
ae4ccf12
RD
42
43# Version of the wx library to build against.
d12d9eda 44WX_VERSION ?= $(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
2add9e3c
RD
45
46
47
48# -------------------------------------------------------------------------
49# Do not modify the rest of this file!
50# -------------------------------------------------------------------------
51
52### Variables: ###
53
509f339a 54CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP
ae4ccf12
RD
55WX_VERSION_MAJOR = $(shell echo $(WX_VERSION) | cut -c1,1)
56WX_VERSION_MINOR = $(shell echo $(WX_VERSION) | cut -c2,2)
d12d9eda
VZ
57WX_CONFIG_FLAGS = $(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG) \
58 --toolkit=$(WX_PORT) --version=$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
ae4ccf12
RD
59PENGUIN_CFLAGS = -I. `$(WX_CONFIG) --cflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
60 $(CFLAGS)
61PENGUIN_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
62 $(CXXFLAGS)
2add9e3c
RD
63PENGUIN_OBJECTS = \
64 penguin_penguin.o \
65 penguin_dxfrenderer.o \
66 penguin_trackball.o
67
68### Conditionally set variables: ###
69
ae4ccf12
RD
70ifeq ($(WX_UNICODE),0)
71WX_CONFIG_UNICODE_FLAG = --unicode=no
72endif
73ifeq ($(WX_UNICODE),1)
74WX_CONFIG_UNICODE_FLAG = --unicode=yes
75endif
76ifeq ($(WX_SHARED),0)
77WX_CONFIG_SHARED_FLAG = --static=yes
78endif
79ifeq ($(WX_SHARED),1)
80WX_CONFIG_SHARED_FLAG = --static=no
81endif
2add9e3c
RD
82
83
84### Targets: ###
85
ae4ccf12 86all: test_for_selected_wxbuild penguin
2add9e3c 87
8ece421c 88install:
2add9e3c
RD
89
90uninstall:
c661ecca
RR
91
92clean:
2add9e3c
RD
93 rm -f ./*.o
94 rm -f ./*.d
95 rm -f penguin
96
ae4ccf12
RD
97test_for_selected_wxbuild:
98 @$(WX_CONFIG) $(WX_CONFIG_FLAGS)
99
2add9e3c 100penguin: $(PENGUIN_OBJECTS)
95ff11c4 101 $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs gl,core,base`
2add9e3c
RD
102
103penguin_penguin.o: ./penguin.cpp
104 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<
105
106penguin_dxfrenderer.o: ./dxfrenderer.cpp
107 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<
108
109penguin_trackball.o: ./trackball.c
110 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $(CPPDEPS) $<
111
112.PHONY: all install uninstall clean
113
8b089c5e 114
2add9e3c
RD
115# Dependencies tracking:
116-include ./*.d