-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 1.31 KB
/
Makefile
File metadata and controls
43 lines (30 loc) · 1.31 KB
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
33
34
35
36
37
38
39
40
41
42
43
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: cstaats <cstaats@student.codam.nl> +#+ #
# +#+ #
# Created: 2021/11/01 08:30:46 by cstaats #+# #+# #
# Updated: 2021/12/02 13:26:36 by cstaats ######## odam.nl #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRCS = dandi.c ft_printf.c bandersnatch.c percent.c unsignedd.c middleman.c chars.c strprint.c uphex.c vp.c lowhex.c
OBS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBS)
ar crs $(NAME) $(OBS)
%.o: %.c libftprintf.h
$(CC) -c $(CFLAGS) $<
clean:
rm -f $(OBS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re
test: all
gcc main.c -L. -lftprintf
./a.out