52f54095d1c269c106be41106517fcce2e70d8c5
[projects.git] / tools / make / cpp.make
1 # Generic cpp makefile for mBuild build process
2
3 # default parameters
4 CC = g++
5
6 include make.pre
7
8 # All Target
9 all: $(DEPS) $(SOURCE:%.cpp=%.o) $(TARGET)
10
11 # Other Targets
12 clean:
13         -rm *.o
14         -rm $(TARGET)
15
16 .PHONY: all make.post
17
18 %.a: $(SOURCE:%.cpp=%.o)
19         ar r $(TARGET) *.o
20
21 %.so: $(SOURCE:%.cpp=%.o) $(LDLIBS)
22         $(CXX) -shared -o $(TARGET) *.o $(LDFLAGS) $(LDLIBS) $(EXTLIB)
23 -include make.post