42/d12/ex00/Makefile
2016-11-20 02:20:23 +02:00

36 lines
1.2 KiB
Makefile

# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: gtertysh <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/11/10 16:39:11 by gtertysh #+# #+# #
# Updated: 2016/11/10 18:24:50 by gtertysh ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_display_file
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)