# **************************************************************************** # # # # ::: :::::::: # # Makefile :+: :+: :+: # # +:+ +:+ +:+ # # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/04/16 20:12:38 by gbaconni #+# #+# # # Updated: 2022/04/29 10:00:15 by gbaconni ### ########.fr # # # # **************************************************************************** # KERNEL = $(shell uname -s) MACHINE = $(shell uname -m) all: test libftprintf.a: libftprintf @ln -snf ../libftprintf/libftprintf.a libftprintf.a libftprintf: @make -C ../libftprintf bonus bonus: test-pft test: test-pft test2: test-pft2 test3: test-pft3 test-pft: @cd pft && ./test mix test-pft2: @cd pft && ./test test-pft3: @cd pft && ./test c @cd pft && ./test s @cd pft && ./test p @cd pft && ./test d @cd pft && ./test i @cd pft && ./test u @cd pft && ./test x @cd pft && ./test X pft: libftprintf.a @test -d pft || git clone https://github.com/gavinfielder/pft.git pft ifeq ($(KERNEL),Linux) @which php >/dev/null 2>&1 || sudo apt-get install -qq -y php-cli @sed -i -r 's/^(INCLUDE_LIBPTHREAD)=.*/\1=1/' pft/options-config.ini endif ifeq ($(KERNEL),Darwin) endif @make -C pft clean: @make -C pft clean fclean: @rm -fr pft