Add a Makefile target for the DIAL server with address sanitization (ASAN) turned on.

This commit is contained in:
Wesley Miaw
2019-10-07 14:38:39 -07:00
parent 93756a84ea
commit 96786e4545

View File

@@ -22,10 +22,14 @@ nf_callbacks_lib: nf_callbacks.o
dialserver: nf_callbacks_lib $(OBJS) dialserver: nf_callbacks_lib $(OBJS)
$(CC) -Wall -Werror -Wl,-rpath,. -g $(OBJS) -ldl -lpthread -lrt -L. -lnfCallbacks -o dialserver $(CC) -Wall -Werror -Wl,-rpath,. -g $(OBJS) -ldl -lpthread -lrt -L. -lnfCallbacks -o dialserver
dialserver_with_ASAN: nf_callbacks_lib $(OBJS)
$(CC) -Wall -Werror -fsanitize=address -Wl,-rpath,. -g $(OBJS) -ldl -lpthread -lrt -L. -lnfCallbacks -o dialserver_with_ASAN
test: test:
make -C tests make -C tests
./tests/run_tests ./tests/run_tests
clean: clean:
rm -f *.o dialserver *.so rm -f *.o dialserver dialserver_with_ASAN *.so
make -C tests clean make -C tests clean