blob: ce1a29f5e299d229b93e0252a9b673ea7d01186d (
plain) (
tree)
|
|
DESTDIR=/
CC=cc
default:
mkdir -p tmp
$(CC) -fsanitize=address -Wall -Wextra -Wformat -pedantic -g -Isrc -Itmp -Itiny-AES-c $(CFLAGS) src/main.c -otravnik -lm -lresolv $(LDFLAGS)
install:
mkdir -p $(DESTDIR)/usr/bin/
cp travnik $(DESTDIR)/usr/bin/
distclean: clean
clean:
rm -rf travnik tmp test-eval
prepare:
sudo apt install libmicrohttpd-dev build-essential default-libmysqlclient-dev -y
valgrind:
valgrind --error-exitcode=59 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt $(CMD)
.PHONY: default install distclean clean prepare valgrind
|