-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 859 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
##
## Makefile for minilibc in /home/nasrat_v/Dev/rendu/tek2/Assembleur/asm_minilibc
##
## Made by Valentin Nasraty
## Login <[email protected]>
##
## Started on Mon Mar 20 18:46:23 2017 Valentin Nasraty
## Last update Sun Mar 26 23:34:30 2017 Valentin Nasraty
##
SRC = strlen.s \
strchr.s \
strcmp.s \
strncmp.s \
memset.s \
memcpy.s \
strstr.s \
rindex.s \
strcspn.s \
strpbrk.s \
strcasecmp.s \
memmove.s
SRC_BONUS = write.s \
read.s \
strncasecmp.s
OBJ = $(SRC:.s=.o)
OBJ_BONUS = $(SRC_BONUS:.s=.o)
NAME = libasm.so
ASFLAGS = -f elf64
AS = nasm $(ASFLAGS)
LDFLAGS = -shared -o
LD = ld $(LDFLAGS)
RM = rm -f
all: compile
compile: $(OBJ) $(OBJ_BONUS)
$(LD) $(NAME) $(OBJ) $(OBJ_BONUS)
clean:
$(RM) $(OBJ) $(OBJ_BONUS)
fclean: clean
$(RM) $(NAME)
re: fclean all