Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = gcc
- FLAGS = -Wall -Werror -Wextra
- NAME = bsq
- HDIR = ./include/
- S = $(wildcard *.c */*.c */*/*.c)
- H = $(wildcard *.h */*.h */*/*.h)
- O = $(S:.c=.o)
- RM = rm -rf
- .PHONY: all clean fclean re
- all: $(NAME)
- $(NAME): $(O)
- @$(CC) $(FLAGS) -o $(NAME) $(O)
- .c.o:
- @$(CC) $(FLAGS) -c $< -o $@ -I $(HDIR)
- clean:
- @$(RM) $(O)
- fclean: clean
- @$(RM) $(NAME)
- re: fclean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement