2021-10-26 20:50:09
This commit is contained in:
@@ -34,6 +34,13 @@ CFLAGS = -Wall -Wextra -Werror
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -g -fsanitize=address -O1
|
||||
endif
|
||||
ifeq ($(FAST), 1)
|
||||
CFLAGS += -v -pipe -O3 -ffast-math -fomit-frame-pointer -funroll-loops
|
||||
endif
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -v -g -O1 -fsanitize=address -fsanitize=undefined -fsanitize=signed-integer-overflow
|
||||
#CFLAGS += -v -g -O1 -fsanitize=address
|
||||
endif
|
||||
|
||||
RM = rm
|
||||
RMFLAGS = -f
|
||||
@@ -87,7 +94,7 @@ _Libftest:
|
||||
@rm -fr Libftest/tests/Part1_functions/ft_memccpy || true
|
||||
|
||||
c: compile _Libftest
|
||||
@cd Libftest && ./grademe.sh -u -l -b -m || true
|
||||
@cd Libftest && ./grademe.sh -u -b || true
|
||||
@echo ""
|
||||
@echo "For more details do:"
|
||||
@echo "less Libftest/deepthought"
|
||||
@@ -105,6 +112,7 @@ d: compile _libft-unit-test
|
||||
@echo "For more details do:"
|
||||
@echo "less libft-unit-test/result.log"
|
||||
@echo ""
|
||||
@rm -f libft/libft.so
|
||||
|
||||
#e: compile _libft-unit-test
|
||||
e: fast _libft-unit-test
|
||||
@@ -114,17 +122,18 @@ test: a b c d
|
||||
|
||||
bonus: _libftTester _Libftest _libft-unit-test
|
||||
@make -C libft bonus
|
||||
@make -C libftTester b || true
|
||||
@cd Libftest && ./grademe.sh -u -l -ob || true
|
||||
@cd Libftest && ./grademe.sh -u -ob || true
|
||||
@echo ""
|
||||
@echo "For more details do:"
|
||||
@echo "less Libftest/deepthought"
|
||||
@echo ""
|
||||
@make -C libft-unit-test f | grep -B2 -A999 'Bonus part' || true
|
||||
@echo ""
|
||||
@make -C libftTester b || true
|
||||
@make -C libft-unit-test f | grep -a -B2 -A999 'Bonus part' || true
|
||||
@echo ""
|
||||
@echo "For more details do:"
|
||||
@echo "less libft-unit-test/result.log"
|
||||
@echo ""
|
||||
@rm -f libft/libft.so
|
||||
|
||||
update:
|
||||
@git pull
|
||||
|
||||
Reference in New Issue
Block a user