better test organisation
This commit is contained in:
13
Makefile
13
Makefile
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user