-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 1.33 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: yhadari <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/12/13 17:50:40 by yhadari #+# #+# #
# Updated: 2020/12/21 20:01:19 by yhadari ### ########.fr #
# #
# **************************************************************************** #
NAME = libasm
NASM = nasm -fmacho64 ft_strlen.s &&\
nasm -fmacho64 ft_strcpy.s &&\
nasm -fmacho64 ft_strcmp.s &&\
nasm -fmacho64 ft_write.s &&\
nasm -fmacho64 ft_read.s &&\
nasm -fmacho64 ft_strdup.s
O = ft_strlen.o ft_strcpy.o ft_strcmp.o\
ft_write.o ft_read.o ft_strdup.o
all : $(NAME)
$(NAME) :
@clear
@$(NASM)
@gcc -Wall -Werror -Wextra -g main.c $(O) -o $(NAME)
@./$(NAME)
clean :
@rm -rf *.o
fclean : clean
@rm -rf $(NAME)
re : fclean all