summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-08 22:43:35 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-08 22:43:35 +0100
commit4addb711c6a1a282b0a59bf03e850a86ba2ead69 (patch)
treef7e9c4a594d1c4fa41a6ebc6371279762a9a580a /Makefile
Initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1db70d1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+CXX = g++
+CXXFLAGS = -Wall -Wextra -std=c++11 -g -fwrapv -I$(HOME)/prefix/include
+LDFLAGS = -L$(HOME)/prefix/lib -ltermio
+TARGET = ede
+
+.PHONY: all clean remake
+
+all: $(TARGET)
+
+clean:
+ rm -f *.o $(TARGET)
+
+remake: clean
+ make all
+
+
+$(TARGET): $(patsubst %.cpp,%.o,$(wildcard *.cpp))
+ $(CXX) $^ -o $@ $(LDFLAGS)
+
+%.o: %.cpp $(wildcard *.h)
+ $(CXX) $(CXXFLAGS) -c -o $@ $<