-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (33 loc) · 755 Bytes
/
Makefile
File metadata and controls
49 lines (33 loc) · 755 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
46
47
48
49
##
## Makefile for Makefile in /home/naji_m/rendu/PSU_2015_malloc/v2
##
## Made by naji moncef
## Login <naji_m@epitech.net>
##
## Started on Wed Feb 10 23:10:54 2016 naji moncef
## Last update Sat Feb 13 02:56:00 2016 Avel Docquin
##
CC = gcc
RM = rm -f
NAME = libmy_malloc.so
MAIN = main.out
SRC = malloc.c \
show_alloc_mem.c \
free.c \
realloc.c \
block.c
MAIN_SRC = main.c
OBJ = $(SRC:.c=.o)
MAIN_OBJ = $(MAIN_SRC:.c=.o)
CFLAGS += -Wall -Wextra
$(NAME):$(OBJ)
$(CC) -c $(CFLAGS) -fpic $(SRC) && $(CC) -shared -o $(NAME) $(OBJ)
$(MAIN):$(MAIN_OBJ)
$(CC) -o $(MAIN) $(MAIN_OBJ) $(CFLAGS)
all: $(NAME) $(MAIN)
clean:
$(RM) $(OBJ) $(MAIN_OBJ)
fclean: clean
$(RM) $(NAME) $(MAIN)
re: fclean all
.PHONY: all clean fclean re