-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 1.27 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
36
37
38
39
40
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pruiz-ca <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/04/23 14:17:28 by pruiz-ca #+# #+# #
# Updated: 2021/06/08 11:20:44 by pruiz-ca ### ########.fr #
# #
# **************************************************************************** #
NAME = libasm.a
S = src/
SRCS = $Sft_strlen.s $Sft_read.s $Sft_write.s $Sft_strcmp.s \
$Sft_strcpy.s $Sft_strdup.s $Sft_list_push_front.s \
$Sft_list_size.s
OBJS = $(SRCS:.s=.o)
NASM = nasm -f macho64
all: $(NAME)
$(NAME): $(OBJS)
@ar rcs $(NAME) $(OBJS)
%.o: %.s
@$(NASM) $<
clean:
@rm -f $(OBJS) $(BONUS_OBJS)
fclean: clean
@rm -f $(NAME)
re: fclean all
.PHONY: clean fclean re