better test organisation

This commit is contained in:
hugogogo
2022-06-13 22:03:46 +02:00
parent c187d34ce7
commit 988d67e908
4 changed files with 1132 additions and 947 deletions

View File

@@ -49,8 +49,9 @@ INCLUDES = -I$(D_HEADERS) \
-I$(D_TEMPLATES)
D_SRCS = ./tests
SRCS = main.cpp
#SRCS = main42.cpp
SRCS = main.cpp \
tests_vectors.cpp
D_HEADERS = ./headers
HEADERS = colors.h \
@@ -72,9 +73,9 @@ endif
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# . target: prerequisites . $@ : target #
# RULES . recipe . $< : 1st prerequisite #
# . recipe . $^ : all prerequisites #
# . target: prerequisites . $@ : target #
# RULES . recipe . $< : 1st prerequisite #
# . @recipe (silent) . $^ : all prerequisites #
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
all: $(NAME)
@@ -84,8 +85,8 @@ stl: re
ft: re
$(D_OBJS)/%.o: %.$(EXT) | $(D_OBJS)
@echo $(CYAN)"compilation (objects.o) :"$(RESET)
$(CC) $(CFLAGS) -c $< -o $@
@echo $(CYAN)"compilation " $@ $(RESET)
@$(CC) $(CFLAGS) -c $< -o $@
$(D_OBJS):
mkdir $@