diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..632a6c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +DESTDIR=/ + +default: + mkdir tmp -p + gcc -Wno-dangling-else -Wall -Wextra -pedantic -g -Isrc -Itmp src/main.c -lm -otravnik + +install: + mkdir -p $(DESTDIR)/usr/bin/ + cp travnik $(DESTDIR)/usr/bin/ + +distclean: + rm travnik tmp -rf + +clean: + rm travnik tmp -rf + +prepare: + sudo apt install libmicrohttpd-dev build-essential default-libmysqlclient-dev -y + +valgrind: + valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt ./travnik |