Created
January 8, 2020 14:43
-
-
Save cormobro/79c7e4fc1f8fd1f3c2fb1d2beb3933cb to your computer and use it in GitHub Desktop.
makefile felix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME=libft.a | |
CC=gcc | |
CFLAGS=-Wall -Wextra -Werror | |
RM=rm -f | |
LDLIBS=-lft | |
HDDIRS=-I includes/ | |
SRC=ft_memset.c ft_bzero.c ft_memcpy.c ft_memccpy.c ft_memmove.c \ | |
OBJ=$(SRC:.c=.o) | |
$(NAME): | |
$(CC) $(CFLAGS) -c $(SRC) $(HDDIRS) | |
ar rc $(NAME) $(OBJ) | |
ranlib $(NAME) | |
all: $(NAME) | |
clean: | |
$(RM) $(OBJ) | |
fclean: clean | |
$(RM) $(NAME) | |
re: fclean all | |
.PHONY: clean fclean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment