Makefile cleaned (comments deleted + all aligned)

This commit is contained in:
Manzovince
2019-04-16 16:39:37 +02:00
parent 67ec57fd3d
commit 7dfe29b224

View File

@@ -6,32 +6,30 @@
# By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/03/01 13:24:35 by vmanzoni #+# #+# #
# Updated: 2019/04/16 15:35:04 by hulamy ### ########.fr #
# Updated: 2019/04/16 16:39:00 by vmanzoni ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
OBJ_DIR = objs./
HEADER = includes./
HEADER = fillit.h
SRCS = *.c
OBJS = $(SRCS:.c=.o)
LIB = fillit.h
LIB = libft/
CC = gcc
CC = gcc
CFLAGS = -Wall -Werror -Wextra
RM = rm -rf
RM = rm -rf
all: $(NAME)
$(NAME):
make -C libft/
$(CC) $(CFLAGS) -I$(HEADER) -c $(SRCS)
$(CC) -o $(NAME) $(OBJS) -L libft/ -lft
#$(CC) $(CFLAGS) -I$(HEADER) -c $(addprefix $(SRC_DIR), $(SRCS))
#$(CC) $(OBJS) -o $(NAME)
$(CC) -o $(NAME) $(OBJS) -L $(LIB) -lft
mkdir $(OBJ_DIR)
mv $(OBJS) $(OBJ_DIR)