Makefile 248 B

1234567891011121314
  1. objs = lcn.o
  2. target = ../plg_lcn.o
  3. CFLAGS = -std=gnu11 -Wall -Wextra -Werror -I../../include -g
  4. $(target): $(objs)
  5. @cp $(objs) $(target)
  6. %.o: %.c
  7. @$(CC) -c $*.c $(CFLAGS)
  8. @echo -e "CC\t\t\t$*.c"
  9. .PHONY clean:
  10. rm -f $(target) $(objs)