-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (44 loc) · 1.41 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
41
42
43
44
45
46
47
48
49
50
51
52
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rlechapt <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/03/08 15:15:46 by rlechapt #+# #+# #
# Updated: 2015/04/01 05:34:29 by rlechapt ### ########.fr #
# #
# **************************************************************************** #
SRC = ft_islower.s \
ft_isupper.s \
ft_toupper.s \
ft_tolower.s \
ft_isdigit.s \
ft_isprint.s \
ft_isascii.s \
ft_isalnum.s \
ft_isalpha.s \
ft_strlen.s \
ft_puts.s \
ft_strcat.s \
ft_bzero.s \
ft_memset.s \
ft_memcpy.s \
ft_strdup.s \
ft_cat.s \
ft_strcpy.s \
ft_isspace.s \
ft_abs.s
OBJ = $(SRC:%.s=%.o)
NAME = libfts.a
all: $(NAME)
$(NAME): $(OBJ)
ar rc $(NAME) $(OBJ)
ranlib $(NAME)
%.o: %.s libfts.h
nasm -f macho64 $<
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all