de84bb85d41c5c6154a83ce308d57cacfc40c3c0
[projects.git] / tools / make / mMakefile
1 # Generic makefile for mBuild build process
2
3
4 # default parameters
5 CC = g++
6 INSERT_BUILD = /usr/share/mbuild/insert_build.sh
7
8 include make.pre
9
10 # All Target
11 all: $(DEPS) $(SOURCE:%.cpp=%.o) $(TARGET)
12
13 # Other Targets
14 clean:
15         -rm *.o
16         -rm $(TARGET)
17
18
19 .PHONY: all make.post
20
21 %.a: $(SOURCE:%.cpp=%.o)
22         ar r $(TARGET) *.o
23
24 %.so: $(SOURCE:%.cpp=%.o) $(LDLIBS)
25         $(CXX) -shared -o $(TARGET) *.o $(LDLIBS) $(EXTLIB)
26
27 #make.pre: ~/build/debian/rules.pre
28 #       cp ~/build/debian/rules.pre make.pre
29
30 -include make.post
31 # defile default operations
32
33 #-----------------------------------------------------------------
34 # Build-Regeln
35 #-----------------------------------------------------------------
36 %.pdf : %.tex $(SOURCES)
37         pdflatex $< && pdflatex $<
38         cp $*.pdf ~/build
39