summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-12-01 21:29:53 +0100
committertomsmeding <hallo@tomsmeding.nl>2015-12-01 21:29:53 +0100
commitac18b3132059b5e7d5f00ccf2b56e543cf0da84b (patch)
tree490654385bf6aa87f160f79006a12289c20322e6 /Makefile
parentdcaa318d677a1a6881ccc87640ae75c0fc578bfb (diff)
DAT GAME
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 05676ee..a7baecc 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ base_src := $(wildcard *_base.cpp)
base_src += library.cpp main.cpp
base_obj := $(patsubst %.cpp,build/%.o,$(base_src))
-.PHONY: all clean remake
+.PHONY: all clean remake run
#keep all intermediate files!
.SECONDARY:
@@ -24,6 +24,9 @@ clean:
remake: clean all
+run: all
+ ./$(BIN)
+
$(BIN): $(base_obj) $(object_obj)
$(CXX) $(CXXFLAGS) $(LIBS) -o $(BIN) $^