]>
Commit | Line | Data |
---|---|---|
2add9e3c RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3 | # Bakefile 0.2.0 (http://bakefile.sourceforge.net) | |
4 | # Do not modify, all changes will be overwritten! | |
5 | # ========================================================================= | |
3e5e2ea5 | 6 | |
3e5e2ea5 | 7 | |
3e5e2ea5 | 8 | |
2add9e3c RD |
9 | # ------------------------------------------------------------------------- |
10 | # These are configurable options: | |
11 | # ------------------------------------------------------------------------- | |
3e5e2ea5 | 12 | |
2add9e3c RD |
13 | # C++ compiler |
14 | CXX = g++ | |
3e5e2ea5 | 15 | |
2add9e3c RD |
16 | # Standard flags for C++ |
17 | CXXFLAGS = | |
3e5e2ea5 | 18 | |
2add9e3c RD |
19 | # Standard preprocessor flags (common for CC and CXX) |
20 | CPPFLAGS = | |
3e5e2ea5 | 21 | |
2add9e3c RD |
22 | # Standard linker flags |
23 | LDFLAGS = | |
3e5e2ea5 | 24 | |
2add9e3c RD |
25 | # Location and arguments of wx-config script |
26 | WX_CONFIG = wx-config | |
27 | ||
28 | # C++ flags to use with wxWidgets code | |
29 | WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags` | |
30 | ||
31 | # Build shared lib plugin | |
32 | SHARED = 0 | |
33 | ||
34 | ||
35 | ||
36 | # ------------------------------------------------------------------------- | |
37 | # Do not modify the rest of this file! | |
38 | # ------------------------------------------------------------------------- | |
39 | ||
40 | ### Variables: ### | |
41 | ||
42 | CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD | |
43 | RENDER_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) | |
44 | RENDER_OBJECTS = \ | |
45 | render_render.o | |
46 | RENDDLL_CXXFLAGS = -I. -fPIC -DPIC $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) | |
47 | RENDDLL_OBJECTS = \ | |
48 | renddll_renddll.o | |
49 | ||
50 | ### Conditionally set variables: ### | |
51 | ||
52 | ifeq ($(SHARED),1) | |
53 | __renddll___depname = renddll.so | |
54 | endif | |
55 | ||
56 | ||
57 | ### Targets: ### | |
58 | ||
59 | all: render $(__renddll___depname) | |
60 | ||
61 | install: all | |
62 | ||
63 | uninstall: | |
3e5e2ea5 JS |
64 | |
65 | clean: | |
2add9e3c RD |
66 | rm -f ./*.o |
67 | rm -f ./*.d | |
68 | rm -f render | |
69 | rm -f renddll.so | |
70 | ||
71 | render: $(RENDER_OBJECTS) | |
72 | $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,base` | |
73 | ||
74 | ifeq ($(SHARED),1) | |
75 | renddll.so: $(RENDDLL_OBJECTS) | |
76 | $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,base` | |
77 | endif | |
78 | ||
79 | render_render.o: ./render.cpp | |
80 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $< | |
81 | ||
82 | renddll_renddll.o: ./renddll.cpp | |
83 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $< | |
84 | ||
85 | .PHONY: all install uninstall clean | |
86 | ||
87 | ||
88 | # Dependencies tracking: | |
89 | -include ./*.d |