forked from mvtta/simple_debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (36 loc) · 1.41 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bcosters <bcosters@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/08 10:32:48 by bcosters #+# #+# #
# Updated: 2021/02/28 14:10:28 by bcosters ### ########.fr #
# #
# **************************************************************************** #
# -*- MakeFile for Simple debugs Library -*-
# -*- Variable definitions -*-
# Project sources/objects/headers
SRCS = malloc_leak_checker.c simple_debugs.c
OBJS = ${SRCS:.c=.o}
HEADER = simple_debugs.h
NAME = debugs.a
CC = gcc
CFLAGS = -Wall -Wextra -Werror
# -*- Rules -*-
#target: dependencies
# action
# Implicit rules
%.o : %.c
$(CC) -c $(CFLAGS) $< -o $@
# Normal rules
all: $(NAME)
$(NAME): $(OBJS) $(HEADER)
ar rcs $(NAME) $(OBJS)
.PHONY: clean
clean:
rm -f ${OBJS}
fclean: clean
rm -f ${NAME}
re: fclean all