udo/Makefile

21 lines
355 B
Makefile
Raw Permalink Normal View History

2022-11-08 05:21:44 +00:00
CFLAGS=-O3 -Wall -lpam -lpam_misc
BIN=udo
all:
mkdir -p bin
gcc $(wildcard src/*.c) -o bin/udo $(CFLAGS)
2022-11-08 05:21:44 +00:00
install: all
cp bin/udo /usr/local/bin/udo
chown root:root /usr/local/bin/udo
chmod 6755 /usr/local/bin/udo
cp pam.d_udo /etc/pam.d/udo
2022-11-08 12:57:19 +00:00
cp -n udo.conf /etc/udo.conf
2022-11-08 05:21:44 +00:00
uninstall:
rm /usr/local/bin/udo
rm /etc/pam.d/udo
clean:
rm -r bin/*