2021-10-23 10:37:02
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ #
|
# By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2021/10/22 09:10:00 by gbaconni #+# #+# #
|
# Created: 2021/10/22 09:10:00 by gbaconni #+# #+# #
|
||||||
# Updated: 2021/10/22 21:24:29 by gbaconni ### ########.fr #
|
# Updated: 2021/10/23 10:30:24 by gbaconni ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
#
|
#
|
||||||
@@ -32,13 +32,26 @@ SRC = \
|
|||||||
$(HDRDIR)/munit.c
|
$(HDRDIR)/munit.c
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -Wextra -Werror -O1
|
CFLAGS = -Wall -Wextra -Werror
|
||||||
|
ifeq ($(DEBUG), 1)
|
||||||
|
CFLAGS += -g -fsanitize=address -O1
|
||||||
|
endif
|
||||||
|
|
||||||
RM = rm
|
RM = rm
|
||||||
RMFLAGS = -f
|
RMFLAGS = -f
|
||||||
|
|
||||||
all: compile test
|
all: compile test
|
||||||
|
|
||||||
|
debug:
|
||||||
|
@make re DEBUG=1
|
||||||
|
|
||||||
|
setup:
|
||||||
|
@echo "Set the location of your libft to:"
|
||||||
|
@ln -snvf $$(find ~ -mindepth 2 -maxdepth 4 -name libft.a -type f -exec dirname "{}" \; 2>/dev/null | head -n1) libft
|
||||||
|
@echo ""
|
||||||
|
@echo "If the above is not correct the correct location of your libft, use one of the following command to fix it:"
|
||||||
|
@find ~ -mindepth 2 -maxdepth 4 -name libft.h -type f -exec dirname "{}" \; 2>/dev/null | xargs -r -I{} echo ln -snvf {} libft
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "a: nemequ/µnit"
|
@echo "a: nemequ/µnit"
|
||||||
@echo "b: Tripouille/libftTester"
|
@echo "b: Tripouille/libftTester"
|
||||||
@@ -89,4 +102,3 @@ fclean: clean
|
|||||||
|
|
||||||
re: fclean all
|
re: fclean all
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,25 +6,24 @@ Create a link to the base of your libft
|
|||||||
(the one with libft.a and all ft_ and Makefile files)
|
(the one with libft.a and all ft_ and Makefile files)
|
||||||
|
|
||||||
```
|
```
|
||||||
cd 42test/libft
|
cd libft
|
||||||
|
|
||||||
ln -snf $(find ~ -mindepth 2 -maxdepth 4 -name libft.h -exec dirname "{}" \; 2>/dev/null | head -n1) libft
|
make setup
|
||||||
|
|
||||||
# You can also specify the path to your libft
|
# You can also specify the path to your libft manually
|
||||||
ln -snf ~/Projects/libft/git libft
|
ln -snvf $HOME/libft libft
|
||||||
ln -snf ~/42/libft/git libft
|
|
||||||
ln -snf $HOME/libft libft
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Only for Linux
|
Only for Linux
|
||||||
```
|
```
|
||||||
sudo apt-get install -qq -y make gcc clang valgrind build-essential
|
sudo apt-get install -qq -y make gcc clang valgrind libbsd-dev libncurses-dev build-essential
|
||||||
```
|
```
|
||||||
|
|
||||||
## Update
|
## Update
|
||||||
|
|
||||||
```
|
```
|
||||||
cd 42test/libft
|
cd libft
|
||||||
|
|
||||||
make update
|
make update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
/home/baco/42/libft/git
|
/Users/baco/42/libft/git
|
||||||
Reference in New Issue
Block a user