From 14914f50c3de6c5444e13cf67db064b03c1c90ef Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 16 Jul 2019 12:58:13 +0200 Subject: c09 passed, c10 start, exam00 and exam01 --- c09/ex01/Makefile | 23 ++++++++++++++++++----- c09/ex01/srcs/ft_putchar.c | 2 +- c09/ex01/srcs/ft_putstr.c | 3 ++- 3 files changed, 21 insertions(+), 7 deletions(-) (limited to 'c09/ex01') diff --git a/c09/ex01/Makefile b/c09/ex01/Makefile index ba69535..3547e9c 100644 --- a/c09/ex01/Makefile +++ b/c09/ex01/Makefile @@ -1,6 +1,19 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2019/07/15 19:27:49 by cacharle #+# #+# # +# Updated: 2019/07/16 07:41:31 by cacharle ### ########.fr # +# # +# **************************************************************************** # + OUT = libft.a CC = gcc CCFLAGS = -Wall -Wextra -Werror +LDFLAGS = -Iincludes OBJ = srcs/ft_putchar.o srcs/ft_swap.o srcs/ft_putstr.o srcs/ft_strlen.o srcs/ft_strcmp.o .PHONY: all @@ -10,19 +23,19 @@ $(OUT): $(OBJ) ar -crs $(OUT) $(OBJ) srcs/ft_putchar.o: srcs/ft_putchar.c includes/ft.h - $(CC) $(CCFLAGS) -c $< -o $@ + $(CC) $(CCFLAGS) $(LDFLAGS) -c $< -o $@ srcs/ft_swap.o: srcs/ft_swap.c includes/ft.h - $(CC) $(CCFLAGS) -c $< -o $@ + $(CC) $(CCFLAGS) $(LDFLAGS) -c $< -o $@ srcs/ft_putstr.o: srcs/ft_putstr.c includes/ft.h - $(CC) $(CCFLAGS) -c $< -o $@ + $(CC) $(CCFLAGS) $(LDFLAGS) -c $< -o $@ srcs/ft_strlen.o: srcs/ft_strlen.c includes/ft.h - $(CC) $(CCFLAGS) -c $< -o $@ + $(CC) $(CCFLAGS) $(LDFLAGS) -c $< -o $@ srcs/ft_strcmp.o: srcs/ft_strcmp.c includes/ft.h - $(CC) $(CCFLAGS) -c $< -o $@ + $(CC) $(CCFLAGS) $(LDFLAGS) -c $< -o $@ .PHONY: clean clean: diff --git a/c09/ex01/srcs/ft_putchar.c b/c09/ex01/srcs/ft_putchar.c index 8a53dc8..51b252e 100644 --- a/c09/ex01/srcs/ft_putchar.c +++ b/c09/ex01/srcs/ft_putchar.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/02 22:03:32 by cacharle #+# #+# */ -/* Updated: 2019/07/03 14:21:40 by cacharle ### ########.fr */ +/* Updated: 2019/07/15 13:18:04 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/c09/ex01/srcs/ft_putstr.c b/c09/ex01/srcs/ft_putstr.c index c4f4564..fef1aac 100644 --- a/c09/ex01/srcs/ft_putstr.c +++ b/c09/ex01/srcs/ft_putstr.c @@ -6,11 +6,12 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/11 16:17:16 by cacharle #+# #+# */ -/* Updated: 2019/07/11 16:18:11 by cacharle ### ########.fr */ +/* Updated: 2019/07/16 07:29:45 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include +#include "ft.h" void ft_putstr(char *str) { -- cgit