diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-22 03:05:58 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-22 03:18:48 +0100 |
| commit | a917ec555ef8419bf638d6b8f87c965dff96e9e1 (patch) | |
| tree | a18ab385f8e5a5c115d157324f8d2a3966b0003d /Makefile | |
| parent | b22183ba021d9ab3418d8f47545708597247e583 (diff) | |
| download | libasm-a917ec555ef8419bf638d6b8f87c965dff96e9e1.tar.gz libasm-a917ec555ef8419bf638d6b8f87c965dff96e9e1.tar.bz2 libasm-a917ec555ef8419bf638d6b8f87c965dff96e9e1.zip | |
ft_strdup.s and Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c4a029 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2019/11/22 02:56:22 by cacharle #+# #+# # +# Updated: 2019/11/22 03:02:47 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +NAME = libasm.a + +CC = gcc +CCFLAGS = -masm=intel -m64 + +ASMSRC = ft_strlen.s ft_strcpy.s ft_strcmp.s ft_write.s ft_read.s ft_strdup.s +ASMOBJ = $(ASMSRC:.s=.o) + +RM = rm -f +LIB = ar rcs + +all: $(NAME) + +$(NAME): $(ASMOBJ) + $(LIB) $(NAME) $(ASMOBJ) + +test: all + $(CC) main.c -L. -lasm + +%.o: %.s + $(CC) $(CCFLAGS) -c -o $@ $< + +clean: + $(RM) $(ASMOBJ) + +fclean: clean + $(RM) $(NAME) + +re: fclean all |
