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:
parent
61ebaafd0a
commit
5443db5502
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue