From 6bf5dd01493dd6bf644a4896c666535e5eaa8d67 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Mon, 15 Jul 2019 08:15:37 +0200 Subject: c07 passed, c08 in progress, rush01(+ 6x6 try) --- c09/ex01/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 c09/ex01/Makefile (limited to 'c09/ex01') diff --git a/c09/ex01/Makefile b/c09/ex01/Makefile new file mode 100644 index 0000000..0fec395 --- /dev/null +++ b/c09/ex01/Makefile @@ -0,0 +1,28 @@ +SRCDIR = srcs +SRC = ft_putchar.c ft_swap.c ft_putstr.c ft_strlen.c ft_strcmp.c +OBJ = $(SRC:.c = .o) +INCLUDEDIR = includes +INCLUDES = ft.h +CC = gcc +CCFLAGS = -Wall -Wextra -Werror +OUT = libft.a + +all: OUT +.PHONY: all + +$(OUT): $(OBJ) + ar -crs $(OBJ) + +$(OBJ): %.o: %.c + $(CC) $(CCFLAGS) -c $< -o $@ + +.PHONY: clean +clean: + rm -f srcs/*.o + +.PHONY: fclean +fclean: clean + rm $(OUT) + +.PHONY: re +re: fclean all -- cgit