]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.unx
Always use icons with wxToolbook in the notebook sample.
[wxWidgets.git] / samples / render / makefile.unx
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7
8
9 # -------------------------------------------------------------------------
10 # These are configurable options:
11 # -------------------------------------------------------------------------
12
13 # Compiler flags to link loadable module
14 LINK_MODULE_FLAGS ?= -shared
15
16 # C++ compiler
17 CXX = `$(WX_CONFIG) --cxx`
18
19 # Standard flags for C++
20 CXXFLAGS ?=
21
22 # Standard preprocessor flags (common for CC and CXX)
23 CPPFLAGS ?=
24
25 # Standard linker flags
26 LDFLAGS ?=
27
28 # Location and arguments of wx-config script
29 WX_CONFIG ?= wx-config
30
31 # Port of the wx library to build against [gtk1,gtk2,msw,x11,motif,mgl,osx_cocoa,osx_carbon,dfb]
32 WX_PORT ?= $(shell $(WX_CONFIG) --query-toolkit)
33
34 # Use DLL build of wx library to use? [0,1]
35 WX_SHARED ?= $(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
36
37 # Compile Unicode build of wxWidgets? [0,1]
38 WX_UNICODE ?= $(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
39
40 # Version of the wx library to build against.
41 WX_VERSION ?= $(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
42
43 # Build shared lib plugin
44 SHARED ?= 0
45
46
47
48 # -------------------------------------------------------------------------
49 # Do not modify the rest of this file!
50 # -------------------------------------------------------------------------
51
52 ### Variables: ###
53
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 RENDER_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
60 $(CXXFLAGS)
61 RENDER_OBJECTS = \
62 render_render.o
63 RENDDLL_CXXFLAGS = -I. -fPIC -DPIC `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` \
64 $(CPPFLAGS) $(CXXFLAGS)
65 RENDDLL_OBJECTS = \
66 renddll_renddll.o
67
68 ### Conditionally set variables: ###
69
70 ifeq ($(WX_UNICODE),0)
71 WX_CONFIG_UNICODE_FLAG = --unicode=no
72 endif
73 ifeq ($(WX_UNICODE),1)
74 WX_CONFIG_UNICODE_FLAG = --unicode=yes
75 endif
76 ifeq ($(WX_SHARED),0)
77 WX_CONFIG_SHARED_FLAG = --static=yes
78 endif
79 ifeq ($(WX_SHARED),1)
80 WX_CONFIG_SHARED_FLAG = --static=no
81 endif
82 ifeq ($(SHARED),1)
83 __renddll___depname = renddll.so
84 endif
85
86
87 ### Targets: ###
88
89 all: test_for_selected_wxbuild render $(__renddll___depname)
90
91 install:
92
93 uninstall:
94
95 clean:
96 rm -f ./*.o
97 rm -f ./*.d
98 rm -f render
99 rm -f renddll.so
100
101 test_for_selected_wxbuild:
102 @$(WX_CONFIG) $(WX_CONFIG_FLAGS)
103
104 render: $(RENDER_OBJECTS)
105 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,base`
106
107 ifeq ($(SHARED),1)
108 renddll.so: $(RENDDLL_OBJECTS)
109 $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,base`
110 endif
111
112 render_render.o: ./render.cpp
113 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
114
115 renddll_renddll.o: ./renddll.cpp
116 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
117
118 .PHONY: all install uninstall clean
119
120
121 # Dependencies tracking:
122 -include ./*.d