include config.mk SRC = keympp.c OBJ = ${SRC:.c=.o} all: options keympp options: @echo keym build options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" @echo "LD = ${LD}" .c.o: @${CC} -c ${CFLAGS} $< ${OBJ}: config.mk keympp: ${OBJ} @${LD} -o $@ ${OBJ} ${LDFLAGS} @strip $@ clean: @rm -f keympp ${OBJ} .PHONY: all options clean