lib.rules 203 B

123456789101112131415161718192021
  1. ifndef CC
  2. CC=gcc
  3. endif
  4. ifndef CFLAGS
  5. CFLAGS = -MMD -O2 -Wall -g
  6. endif
  7. CFLAGS += -I.. -I../utils
  8. Q=@
  9. E=echo
  10. ifeq ($(V), 1)
  11. Q=
  12. E=true
  13. endif
  14. %.o: %.c
  15. $(Q)$(CC) -c -o $@ $(CFLAGS) $<
  16. @$(E) " CC " $<