wm: keylock

ref: 69094e255d18e4ad55302705a0144b8df4a0321f
dir: /Makefile/

View raw version
include config.mk

SRC = keylock.c
OBJ = ${SRC:.c=.o}

all: keylock

.c.o:
	${CC} -c ${CFLAGS} $<

${OBJ}: config.mk

keylock: ${OBJ}
	${CC} -o $@ ${LIBS} ${OBJ}

install: all
	mkdir -p ${PREFIX}
	install -m 0755 ${PROGNAME} ${PREFIX}/bin
uninstall: 
	rm ${PREFIX}/bin/${PROGNAME}

clean:
	rm *.o ${PROGNAME}

.PHONY: all install uninstall clean