Add ft_vprintf_precision_bonus and define HEXA_LOWER HEXA_UPPER

This commit is contained in:
gbaconni
2022-04-29 11:00:53 +02:00
parent 63712bd5d6
commit 34fe699fea
9 changed files with 104 additions and 51 deletions

View File

@@ -6,26 +6,58 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/04/16 20:12:38 by gbaconni #+# #+# #
# Updated: 2022/04/16 20:22:22 by gbaconni ### lausanne.ch #
# Updated: 2022/04/29 10:00:15 by gbaconni ### ########.fr #
# #
# **************************************************************************** #
UNAME_S = $(shell uname -s)
KERNEL = $(shell uname -s)
MACHINE = $(shell uname -m)
all: test
libftprintf.a:
libftprintf.a: libftprintf
@ln -snf ../libftprintf/libftprintf.a libftprintf.a
libftprintf:
@make -C ../libftprintf bonus
bonus: test-pft
test: test-pft
test-pft: libftprintf.a
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 ($(UNAME_S),Linux)
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
@cd pft && ./test
clean:
@make -C pft clean
fclean:
@rm -fr pft