42/d12/ex01/Makefile

37 lines
1.2 KiB
Makefile
Raw Normal View History

2016-11-20 02:20:23 +02:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: gtertysh <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/11/10 16:39:11 by gtertysh #+# #+# #
# Updated: 2016/11/10 21:44:18 by gtertysh ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_cat
SRC = src/
INC = headers/
MAIN = main/
FLAGS = -Wall -Wextra -Werror
LIB = libft.a
all: $(NAME)
lib:
gcc -c $(SRC)*.c -I $(INC)
ar cr $(LIB) *.o
$(NAME): lib
gcc $(FLAGS) $(MAIN)*.c -L . -lft -I $(INC) -o $(NAME)
clean:
rm -f *.o
fclean: clean
rm -f $(LIB)
rm -f $(NAME)