]>
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 | # ========================================================================= | |
367e57ec | 6 | |
367e57ec | 7 | |
367e57ec | 8 | |
2add9e3c RD |
9 | # ------------------------------------------------------------------------- |
10 | # These are configurable options: | |
11 | # ------------------------------------------------------------------------- | |
367e57ec | 12 | |
2add9e3c RD |
13 | # C++ compiler |
14 | CXX = g++ | |
367e57ec | 15 | |
2add9e3c RD |
16 | # Standard flags for C++ |
17 | CXXFLAGS = | |
367e57ec | 18 | |
2add9e3c RD |
19 | # Standard preprocessor flags (common for CC and CXX) |
20 | CPPFLAGS = | |
367e57ec | 21 | |
2add9e3c RD |
22 | # Standard linker flags |
23 | LDFLAGS = | |
367e57ec | 24 | |
2add9e3c RD |
25 | # Location and arguments of wx-config script |
26 | WX_CONFIG = wx-config | |
367e57ec | 27 | |
2add9e3c RD |
28 | # C++ flags to use with wxWidgets code |
29 | WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags` | |
30 | ||
31 | ||
32 | ||
33 | # ------------------------------------------------------------------------- | |
34 | # Do not modify the rest of this file! | |
35 | # ------------------------------------------------------------------------- | |
36 | ||
37 | ### Variables: ### | |
38 | ||
39 | CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD | |
40 | CLIENT_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) | |
41 | CLIENT_OBJECTS = \ | |
42 | client_client.o | |
43 | SERVER_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) | |
44 | SERVER_OBJECTS = \ | |
45 | server_server.o | |
46 | ||
47 | ### Conditionally set variables: ### | |
48 | ||
49 | ||
50 | ||
51 | ### Targets: ### | |
52 | ||
53 | all: client server | |
54 | ||
55 | install: all | |
56 | ||
57 | uninstall: | |
58 | ||
59 | clean: | |
60 | rm -f ./*.o | |
61 | rm -f ./*.d | |
62 | rm -f client | |
63 | rm -f server | |
64 | ||
65 | client: $(CLIENT_OBJECTS) | |
66 | $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,net,base` | |
67 | ||
68 | server: $(SERVER_OBJECTS) | |
69 | $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,net,base` | |
70 | ||
71 | client_client.o: ./client.cpp | |
72 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $< | |
73 | ||
74 | server_server.o: ./server.cpp | |
75 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $< | |
76 | ||
77 | .PHONY: all install uninstall clean | |
78 | ||
79 | ||
80 | # Dependencies tracking: | |
81 | -include ./*.d |