summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-28 20:00:03 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-28 20:00:03 +0100
commita9df5b37da4f5cf9c7c502f600a9944cdaf3f527 (patch)
tree0571e19e94ef19c03ae555fd24611d8ec18e5ee7 /Makefile
Initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e6d626b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CXX = g++
+CXXFLAGS = -Wall -Wextra -std=c++11 -g -fwrapv
+LDFLAGS =
+TARGET = boog
+
+.PHONY: all clean remake
+
+all: $(TARGET)
+
+clean:
+ rm -f *.o $(TARGET)
+ rm -rf *.dSYM
+
+remake: clean
+ make all
+
+
+$(TARGET): $(patsubst %.cpp,%.o,$(wildcard *.cpp))
+ $(CXX) $^ -o $@ $(LDFLAGS)
+
+%.o: %.cpp $(wildcard *.h)
+ $(CXX) $(CXXFLAGS) -c -o $@ $<