summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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) $^