1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.7 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
9 # -------------------------------------------------------------------------
10 # These are configurable options:
11 # -------------------------------------------------------------------------
17 CXX = `$(WX_CONFIG) --cxx`
19 # Standard flags for CC
22 # Standard flags for C++
25 # Standard preprocessor flags (common for CC and CXX)
28 # Standard linker flags
31 # Location and arguments of wx-config script
32 WX_CONFIG ?= wx-config
34 # Port of the wx library to build against [gtk1,gtk2,msw,x11,motif,mgl,osx_cocoa,osx_carbon,dfb]
35 WX_PORT ?= $(shell $(WX_CONFIG) --query-toolkit)
37 # Use DLL build of wx library to use? [0,1]
38 WX_SHARED ?= $(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
40 # Compile Unicode build of wxWidgets? [0,1]
41 WX_UNICODE ?= $(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
43 # Version of the wx library to build against.
44 WX_VERSION ?= $(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
48 # -------------------------------------------------------------------------
49 # Do not modify the rest of this file!
50 # -------------------------------------------------------------------------
54 CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP
55 WX_VERSION_MAJOR = $(shell echo $(WX_VERSION) | cut -c1,1)
56 WX_VERSION_MINOR = $(shell echo $(WX_VERSION) | cut -c2,2)
57 WX_CONFIG_FLAGS = $(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG) \
58 --toolkit=$(WX_PORT) --version=$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
59 PENGUIN_CFLAGS = -I. `$(WX_CONFIG) --cflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
61 PENGUIN_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
65 penguin_dxfrenderer.o \
68 ### Conditionally set variables: ###
70 ifeq ($(WX_UNICODE),0)
71 WX_CONFIG_UNICODE_FLAG = --unicode=no
73 ifeq ($(WX_UNICODE),1)
74 WX_CONFIG_UNICODE_FLAG = --unicode=yes
77 WX_CONFIG_SHARED_FLAG = --static=yes
80 WX_CONFIG_SHARED_FLAG = --static=no
86 all: test_for_selected_wxbuild penguin
97 test_for_selected_wxbuild:
98 @$(WX_CONFIG) $(WX_CONFIG_FLAGS)
100 penguin: $(PENGUIN_OBJECTS)
101 $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs gl,core,base`
103 penguin_penguin.o: ./penguin.cpp
104 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<
106 penguin_dxfrenderer.o: ./dxfrenderer.cpp
107 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<
109 penguin_trackball.o: ./trackball.c
110 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $(CPPDEPS) $<
112 .PHONY: all install uninstall clean
115 # Dependencies tracking: