ready for surrender
This commit is contained in:
22
Makefile
22
Makefile
@@ -34,7 +34,7 @@ NAME = containers
|
||||
NAME_FT = containers_ft
|
||||
NAME_STL = containers_stl
|
||||
|
||||
CC = g++
|
||||
CC = clang++
|
||||
EXT = cpp
|
||||
|
||||
CFLAGS = -Wall -Wextra -Werror $(INCLUDES)
|
||||
@@ -61,14 +61,14 @@ D_SRCS = ./tests
|
||||
#SRCS = main42.cpp
|
||||
#SRCS = main_map_1.cpp
|
||||
#SRCS = main_map_2.cpp
|
||||
SRCS = main_stack_1.cpp
|
||||
#SRCS = \
|
||||
# main.cpp \
|
||||
# tests_definitions.cpp \
|
||||
# \
|
||||
# tests_vector.cpp \
|
||||
# tests_map.cpp \
|
||||
# tests_stack.cpp
|
||||
#SRCS = main_stack_1.cpp
|
||||
SRCS = \
|
||||
main.cpp \
|
||||
tests_definitions.cpp \
|
||||
\
|
||||
tests_vector.cpp \
|
||||
tests_map.cpp \
|
||||
tests_stack.cpp
|
||||
|
||||
D_HEADERS = ./headers
|
||||
HEADERS = \
|
||||
@@ -124,13 +124,13 @@ $(D_OBJS_STL)/%.o: %.$(EXT) | $(D_OBJS_STL)
|
||||
$(D_OBJS_FT) $(D_OBJS_STL):
|
||||
mkdir $@
|
||||
|
||||
$(OBJS): $(F_INCLUDES)
|
||||
$(OBJS_FT) $(OBJS_STL): $(F_INCLUDES)
|
||||
|
||||
# https://stackoverflow.com/questions/19259108/makefile-same-rule-for-multiple-targets
|
||||
$(NAME_FT): $(OBJS_FT)
|
||||
$(NAME_STL): $(OBJS_STL)
|
||||
$(NAME_FT) $(NAME_STL):
|
||||
@echo $(CYAN)"linkage (link objects.o)"$(RESET)
|
||||
@echo $(PURPLE)"linkage (link objects.o)"$(RESET)
|
||||
@$(CC) $^ -o $@ $(LIBS)
|
||||
|
||||
leaks: leaksft
|
||||
|
||||
Reference in New Issue
Block a user