Makefile 227 B

12345678910111213
  1. objs = 1.o
  2. srcs = 1.c
  3. targets = 1
  4. CFLAGS = -Wall -Wextra -Werror -I../include -L.. -lspearl -g
  5. all : $(targets)
  6. %: %.c
  7. @$(CC) $*.c -o $* $(CFLAGS)
  8. @echo -e "\tCC\t\t$*.c"
  9. .PHONY clean :
  10. -rm $(objs) $(targets) -f