Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ##
  2. ## EPITECH PROJECT, 2018
  3. ## Makefile
  4. ## File description:
  5. ## Makefile_ASM
  6. ##
  7.  
  8. NAME = libasm.so
  9.  
  10. SRCS = strlen.s
  11.  
  12. OBJS = $(SRCS:.s=.o)
  13.  
  14. CC = ld -fPIC -shared -o
  15.  
  16. ASM = nasm -f elf64 -o
  17.  
  18. RM = rm -rf
  19.  
  20. all: $(NAME)
  21.  
  22. $(NAME): $(OBJS)
  23. $(CC) $(NAME) $(OBJS)
  24.  
  25. %.o: %.s
  26. $(ASM) $(OBJS) $(SRCS)
  27.  
  28. clean:
  29. $(RM) $(OBJS)
  30.  
  31. fclean: clean
  32. $(RM) $(NAME)
  33.  
  34. re: fclean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement