diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -14,12 +14,20 @@ SANITIZER = -fsanitize=address -fsanitize=undefined -fsanitize=leak -fno-omit-fr CXXFLAGS = -Og -g -Wall -Wextra -Werror -I. -std=c++14 $(DEPS_GEN) $(SANITIZER) LDFLAGS = $(SANITIZER) -all: build $(BINS) +# -- RULES --------------------------------------------------------------------- bear: bear intercept -- $(MAKE) all bear citnames +all: build $(BINS) + +run: all + @for BIN in $(BINS); do \ + echo "==> run $$BIN"; \ + $$BIN; \ + done + build/%: build/%.o $(CXX) -o $@ $< $(LDFLAGS) |