-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 733 Bytes
/
Makefile
File metadata and controls
41 lines (31 loc) · 733 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
##
## Makefile for in /home/nasrat_v/rendu/tek2/malloc/PSU_2020_malloc
##
## Made by Valentin Nasraty
## Login <valentin.nasraty@epitech.eu>
##
## Started on Fri Feb 3 15:34:25 2017 Valentin Nasraty
## Last update Sun Feb 12 23:05:18 2017 Valentin Nasraty
##
SRC = malloc.c \
free.c \
realloc.c \
manage_bloc.c \
get_bloc.c \
copy.c \
thread_safe.c \
show_alloc_mem.c \
basic_func.c
NAME = libmy_malloc.so
CFLAGS = -c -fpic -W -Wall -ansi -pedantic -std=gnu99
CC = cc
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) -c -fpic $(SRC) $(CFLAGS)
$(CC) -shared -o $(NAME) $(OBJ) -lpthread
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all