]>
Commit | Line | Data |
---|---|---|
2add9e3c RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
25bb1412 | 3 | # Bakefile 0.2.1 (http://bakefile.sourceforge.net) |
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 RD |
13 | # C compiler |
14 | CC = gcc | |
8b089c5e | 15 | |
2add9e3c RD |
16 | # C++ compiler |
17 | CXX = g++ | |
8b089c5e | 18 | |
2add9e3c RD |
19 | # Standard flags for CC |
20 | CFLAGS = | |
21 | ||
22 | # Standard flags for C++ | |
23 | CXXFLAGS = | |
24 | ||
25 | # Standard preprocessor flags (common for CC and CXX) | |
26 | CPPFLAGS = | |
27 | ||
28 | # Standard linker flags | |
29 | LDFLAGS = | |
30 | ||
31 | # Location and arguments of wx-config script | |
32 | WX_CONFIG = wx-config | |
33 | ||
34 | # C flags to use with wxWidgets code | |
35 | WX_CFLAGS = `$(WX_CONFIG) --cflags` | |
36 | ||
37 | # C++ flags to use with wxWidgets code | |
38 | WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags` | |
39 | ||
40 | ||
41 | ||
42 | # ------------------------------------------------------------------------- | |
43 | # Do not modify the rest of this file! | |
44 | # ------------------------------------------------------------------------- | |
45 | ||
46 | ### Variables: ### | |
47 | ||
48 | CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD | |
49 | PENGUIN_CFLAGS = -I. $(WX_CFLAGS) $(CPPFLAGS) $(CFLAGS) | |
50 | PENGUIN_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) | |
51 | PENGUIN_OBJECTS = \ | |
52 | penguin_penguin.o \ | |
53 | penguin_dxfrenderer.o \ | |
54 | penguin_trackball.o | |
55 | ||
56 | ### Conditionally set variables: ### | |
57 | ||
58 | ||
59 | ||
60 | ### Targets: ### | |
61 | ||
62 | all: penguin | |
63 | ||
64 | install: all | |
65 | ||
66 | uninstall: | |
c661ecca RR |
67 | |
68 | clean: | |
2add9e3c RD |
69 | rm -f ./*.o |
70 | rm -f ./*.d | |
71 | rm -f penguin | |
72 | ||
73 | penguin: $(PENGUIN_OBJECTS) | |
74 | $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs gl,core,base` | |
75 | ||
76 | penguin_penguin.o: ./penguin.cpp | |
77 | $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $< | |
78 | ||
79 | penguin_dxfrenderer.o: ./dxfrenderer.cpp | |
80 | $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $< | |
81 | ||
82 | penguin_trackball.o: ./trackball.c | |
83 | $(CC) -c -o $@ $(PENGUIN_CFLAGS) $(CPPDEPS) $< | |
84 | ||
85 | .PHONY: all install uninstall clean | |
86 | ||
8b089c5e | 87 | |
2add9e3c RD |
88 | # Dependencies tracking: |
89 | -include ./*.d |