1
0
Fork 0
forked from soccera/rdo

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.
This commit is contained in:
sw1tchbl4d3 2021-07-14 06:13:34 +02:00
parent 61ebaafd0a
commit 5443db5502

View file

@ -1,5 +1,8 @@
rdo: rdo.c all: rdo.c
gcc rdo.c -lcrypt -lbsd -o rdo -Wall 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 install: rdo
cp rdo /usr/bin/rdo cp rdo /usr/bin/rdo