Advertisement
Guest User

Untitled

a guest
May 4th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. CC = gcc
  2. NAME = crusader
  3. SRC = main.c \
  4. includes/my_putchar.c \
  5. includes/my_putstr.c \
  6. includes/my_put_nbr.c \
  7. includes/algo.c \
  8. includes/fonctions1.c \
  9.  
  10. OBJ = $(SRC:%.c=%.o)
  11. RM = rm -f
  12. CFLAGS = -W -Wall -Werror -ansi -pedantic -I.
  13.  
  14. $(NAME): $(OBJ)
  15. $(CC) $(OBJ) -o $(NAME)
  16. $(RM) $(OBJ)
  17.  
  18. all: $(NAME)
  19.  
  20. clean:
  21. $(RM) $(OBJ)
  22.  
  23. fclean: clean
  24. $(RM) $(NAME)
  25.  
  26. re: fclean all
  27.  
  28. .PHONY: clean fclean re
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement