Makefile (590B)
1 include config.mk 2 3 SRC = pcmprint.c 4 OBJ = ${SRC:.c=.o} 5 6 all: pcmprint 7 8 .c.o: 9 ${CC} -c ${CFLAGS} $< 10 11 ${OBJ}: 12 13 pcmprint: ${OBJ} 14 ${CC} -o $@ ${OBJ} ${LDFLAGS} 15 16 install: all 17 mkdir -p ${DESTDIR}${PREFIX}/bin/ 18 cp -f pcmprint $(DESTDIR)${PREFIX}/bin/ 19 chmod 755 ${DESTDIR}${PREFIX}/bin/pcmprint 20 mkdir -p ${DESTDIR}${MANPREFIX}/man1 21 cp -f pcmprint.1 ${DESTDIR}${MANPREFIX}/man1/pcmprint.1 22 chmod 644 ${DESTDIR}${MANPREFIX}/man1/pcmprint.1 23 24 uninstall: 25 rm -f ${DESTDIR}${PREFIX}/bin/pcmprint\ 26 ${DESTDIR}${MANDIR}/pcmprint.1 27 28 clean: 29 rm -f pcmprint ${OBJ} 30 31 .PHONY: all clean instal uninstall