Commit ededc38a authored by jkvis's avatar jkvis
Browse files

Playing with running tests

parent 9b75f8e3
......@@ -14,7 +14,7 @@ CC = gcc
CFLAGS = -march=native
CPPFLAGS = $(addprefix -I, $(INC_DIR) $(LIB_INC)) -Wall -Wextra -pedantic
.PHONY: all clean debug libs release
.PHONY: all clean clean_all debug libs release tests
release: CFLAGS += -O3 -fomit-frame-pointer -funroll-loops -DNDEBUG
release: all
......@@ -22,11 +22,19 @@ release: all
debug: CFLAGS += -O0 -DDEBUG -ggdb3
debug: all
all: $(TARGET) $(LIBS)
tests: CFLAGS += -O0 -DDEBUG -ggdb3
tests: debug $(LIBS)
$(MAKE) -C tests run_tests
all: $(TARGET)
rm -f $(OBJECTS) $(DEPS) $(TARGET)
clean_all: clean
$(MAKE) -C $(LIBS) clean
$(MAKE) -C tests clean
ar rcs $@ $<
......@@ -13,10 +13,14 @@ CC = gcc
CFLAGS = -march=native -O0 -DDEBUG -ggdb3
CPPFLAGS = $(addprefix -I, $(INC_DIR)) -Wall -Wextra -pedantic
.PHONY: all clean
.PHONY: all clean run_tests
all: $(TARGET)
run_tests: $(TARGET)
@echo running tests...
rm -f $(OBJECTS) $(DEPS) $(TARGET)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment