rdo/Makefile
sw1tchbl4d3 41dfdb321f Remove LSAN from the debug build
For some unknown reason LSAN catches a SIGSEGV (rdo.c:45) when enabled,
but removing it also removes the supposed SIGSEGV it catches.
To repro, build the earlier build with LSAN, and enter a file that
doesnt exist.
As long as I don't know why LSAN thinks this simple error message causes
a segmentation fault, I will remove it.
2022-03-08 16:51:04 +01:00

26 lines
530 B
Makefile

CFLAGS = -Wall -Wextra -Werror -Wl,-z,now
CFLAGS_RELEASE = ${CFLAGS} -O2 -s -D_FORTIFY_SOURCE=2
CFLAGS_DEBUG = ${CFLAGS} -O0 -g -fsanitize=undefined
LIBS = -lbsd -lcrypt
CC = gcc
all: rdo.c
${CC} ${CFLAGS_RELEASE} rdo.c -o rdo ${LIBS}
debug: rdo.c
${CC} ${CFLAGS_DEBUG} rdo.c -o rdo ${LIBS}
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
chmod 600 /etc/rdo.conf
uninstall:
rm /usr/bin/rdo
rm /etc/rdo.conf
clean:
rm rdo