-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (37 loc) · 900 Bytes
/
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
##
## EPITECH PROJECT, 2018
## Project MiniLibC
## File description:
## Makefile
##
LD = ld
ASM = nasm
ASMFLAGS = -f elf64
CFLAGS = -fPIC -shared
SRC = memcpy.asm \
memset.asm \
strchr.asm \
strcmp.asm \
strncmp.asm \
strlen.asm \
strcasecmp.asm \
rindex.asm \
strstr.asm \
strpbrk.asm \
strcspn.asm \
memmove.asm
OBJ = $(SRC:.asm=.o)
NAME = libasm.so
all: $(NAME)
$(NAME): $(OBJ)
$(LD) $(CFLAGS) -o $(NAME) $(OBJ)
%.o: %.asm
$(ASM) $(ASMFLAGS) $< -o $@
clean:
rm -f $(OBJ)
rm -f a.out
fclean: clean
rm -f $(NAME)
re: fclean all
test: re
gcc -Wall -Wextra -W -fno-builtin -g3 mainTest.c -o test