]> wagnertech.de Git - projects.git/commitdiff
Merge branch 'master' of http://wagnertech.de/git/projects
authorMichael Wagner <michael@wagnertech.de>
Mon, 15 Oct 2018 20:37:01 +0000 (22:37 +0200)
committerMichael Wagner <michael@wagnertech.de>
Mon, 15 Oct 2018 20:37:01 +0000 (22:37 +0200)
tools/make/cpp.make [new file with mode: 0644]

diff --git a/tools/make/cpp.make b/tools/make/cpp.make
new file mode 100644 (file)
index 0000000..183afe4
--- /dev/null
@@ -0,0 +1,23 @@
+# Generic cpp makefile for mBuild build process
+
+# default parameters
+CC = g++
+
+include make.pre
+
+# All Target
+all: $(DEPS) $(SOURCE:%.cpp=%.o) $(TARGET)
+
+# Other Targets
+clean:
+       -rm *.o
+       -rm $(TARGET)
+
+.PHONY: all make.post
+
+%.a: $(SOURCE:%.cpp=%.o)
+       ar r $(TARGET) *.o
+
+%.so: $(SOURCE:%.cpp=%.o) $(LDLIBS)
+       $(CXX) -shared -o $(TARGET) *.o $(LDLIBS) $(EXTLIB)
+-include make.post