Makefile (692B)
1 # spm - simple password management 2 3 include config.mk 4 5 SRC = spm.c 6 OBJ = ${SRC:.c=.o} 7 8 all: options spm 9 10 options: 11 @echo slpass build options: 12 @echo "CFLAGS = ${CFLAGS}" 13 @echo "LDFLAGS = ${LDFLAGS}" 14 @echo "CC = ${CC}" 15 16 .c.o: 17 ${CC} -c ${CFLAGS} $< 18 19 ${OBJ}: config.mk 20 21 spm: ${OBJ} 22 ${CC} -o $@ ${OBJ} ${LDFLAGS} 23 24 clean: 25 rm -f spm ${OBJ} 26 27 install: all 28 mkdir -p ${DESTDIR}${PREFIX}/bin 29 cp -f spm ${DESTDIR}${PREFIX}/bin 30 chmod 755 ${DESTDIR}${PREFIX}/bin/spm 31 # mkdir -p ${DESTDIR}${MANPREFIX}/man1 32 # chmod 644 ${DESTDIR}${MANPREFIX}/man1/slpass.1 33 34 uninstall: 35 rm -f ${DESTDIR}${PREFIX}/bin/spm 36 rm -f ${DESTDIR}${MANPREFIX}/man1/spm.1 37 38 .PHONY: all options clean install uninstall