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.
sbl/makefile

26 lines
561 B

CC ?= gcc
CFLAGS = -Wall -pedantic --std=c99 -O2
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
sbl: sbl.c
dbg:
gcc -O0 -g sbl.c -o sbl-dbg
install: sbl
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f sbl ${DESTDIR}${PREFIX}/bin/sbl
chown root:root ${DESTDIR}${PREFIX}/bin/sbl
chmod 4755 ${DESTDIR}${PREFIX}/bin/sbl
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f sbl.1 ${DESTDIR}${MANPREFIX}/man1/sbl.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/sbl.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/sbl\
${DESTDIR}${MANPREFIX}/man1/sbl.1
clean:
rm -f sbl sbl-dbg