You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
390 B

3 years ago
  1. include config.mk
  2. SRC = keympp.c
  3. OBJ = ${SRC:.c=.o}
  4. all: options keympp
  5. options:
  6. @echo keym build options:
  7. @echo "CFLAGS = ${CFLAGS}"
  8. @echo "LDFLAGS = ${LDFLAGS}"
  9. @echo "CC = ${CC}"
  10. @echo "LD = ${LD}"
  11. .c.o:
  12. @${CC} -c ${CFLAGS} $<
  13. ${OBJ}: config.mk
  14. keympp: ${OBJ}
  15. @${LD} -o $@ ${OBJ} ${LDFLAGS}
  16. @strip $@
  17. clean:
  18. @rm -f keympp ${OBJ}
  19. .PHONY: all options clean