User Switcher, just like sudo but worse
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.
|
|
|
CC ?= gcc
|
|
|
|
CFLAGS = -Wall -pedantic --std=c99 -O2
|
|
|
|
LDFLAGS = -lpam -lpam_misc
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
|
|
|
|
us: us.c
|
|
|
|
|
|
|
|
dbg:
|
|
|
|
gcc -O0 -g us.c -o us
|
|
|
|
|
|
|
|
install: us
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
cp -f us ${DESTDIR}${PREFIX}/bin/us
|
|
|
|
chown root:root ${DESTDIR}${PREFIX}/bin/us
|
|
|
|
chmod 4755 ${DESTDIR}${PREFIX}/bin/us
|
|
|
|
# mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
# cp -f us.1 ${DESTDIR}${MANPREFIX}/man1/us.1
|
|
|
|
# chmod 644 ${DESTDIR}${MANPREFIX}/man1/us.1
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/us
|
|
|
|
# ${DESTDIR}${MANPREFIX}/man1/us.1
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f us us-dbg
|