-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 1.17 KB
/
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: asfaihi <asfaihi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/03/11 18:53:30 by asfaihi #+# #+# #
# Updated: 2021/03/11 19:13:43 by asfaihi ### ########.fr #
# #
# **************************************************************************** #
NAME = libasm.a
SRC = ft_strlen.s ft_strcpy.s ft_strcmp.s ft_write.s ft_read.s ft_strdup.s
FORMAT = -f macho64
OBJECT = $(SRC:.s=.o)
all: $(NAME)
$(NAME): $(OBJECT)
ar rcs $(NAME) $(OBJECT)
%.o:%.s
nasm $(FORMAT) $<
clean:
/bin/rm -f $(OBJECT)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all