-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 747 Bytes
/
Makefile
File metadata and controls
45 lines (33 loc) · 747 Bytes
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
##
## Makefile for Makefile in /home/gastal_r/rendu/PSU_2016_malloc
##
## Made by
## Login <gastal_r>
##
## Started on Fri Jan 27 12:28:44 2017
## Last update Sat Feb 11 14:27:40 2017
##
CC = gcc
RM = rm -rf
CFLAGS += -Wall -Wextra -W -Werror -fPIC
CFLAGS += -I./include
LDFLAGS += -shared
NAME = libmy_malloc.so
SRCS = src/malloc.c \
src/utils.c \
src/free.c \
src/add_to_free.c \
src/init_func.c \
src/fct_free.c \
src/realloc.c \
src/show_func.c
OBJS = $(SRCS:.c=.o)
all : $(NAME)
$(NAME) : $(OBJS)
$(CC) -o $(NAME) $(OBJS) $(CFLAGS) $(LDFLAGS)
clean :
$(RM) $(OBJS)
fclean : clean
$(RM) $(NAME)
re : fclean all
.PHONNY : all clean fclean re