-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (26 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: mdekker <mdekker@student.codam.nl> +#+ #
# +#+ #
# Created: 2022/12/07 12:57:06 by mdekker #+# #+# #
# Updated: 2023/12/03 01:00:45 by lithium ######## odam.nl #
# #
# **************************************************************************** #
NAME := gnl.out
SRCS := get_next_line.c get_next_line_utils.c
HEADERS := get_next_line.h libft/includes/libft.h libft/includes/vector.h
OBJS := $(addprefix build/, $(SRCS:.c=.o))
CC := gcc
CFLAGS := -Wall -Wextra -Werror -g
# CFLAGS += -fsanitize=address
all: $(OBJS)
build/%.o: %.c
@mkdir -p $(@D)
@${CC} ${CFLAGS} -c $< -o $@
clean:
@rm -rf build
fclean: clean
re: fclean all