rdo/Makefile
sw1tchbl4d3 5443db5502 Various Makefile additions
We now have a normal and a debug build, both of which
have full RELRO, appropriate handling of warnings and
the default build has D_FORTIFY_SOURCE set to 2.
2021-07-14 06:13:34 +02:00

19 lines
399 B
Makefile

all: rdo.c
gcc -D_FORTIFY_SOURCE=2 -O2 -s -Wl,-z,now -lcrypt -lbsd -Wall -Wextra -Werror rdo.c -o rdo
debug: rdo.c
gcc -O0 -g -Wl,-z,now -lcrypt -lbsd -Wall -Wextra -Werror rdo.c -o rdo
install: rdo
cp rdo /usr/bin/rdo
chown root:root /usr/bin/rdo
chmod 755 /usr/bin/rdo
chmod u+s /usr/bin/rdo
cp rdo_sample.conf /etc/rdo.conf
uninstall:
rm /usr/bin/rdo
rm /etc/rdo.conf
clean:
rm rdo