diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) $^ |