summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a5f5a31..5db1e09 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,9 @@ default:
mkdir tmp -p
xxd -i < src/hp.html > tmp/hp.xxd
echo ', 0' >> tmp/hp.xxd
- gcc -Wall -pedantic -g -Isrc -Itmp -pthread src/main.c $$(xml2-config --libs --cflags) -lmicrohttpd -osear.c
+ xxd -i < src/osdd.xml > tmp/osdd.xxd
+ echo ', 0' >> tmp/osdd.xxd
+ gcc -Wall -Wextra -pedantic -Wno-unused-parameter -g -Isrc -Itmp -pthread src/main.c $$(xml2-config --libs --cflags) -lmicrohttpd -osear.c
install:
mkdir -p $(DESTDIR)/usr/bin/
@@ -25,3 +27,6 @@ test-http:
test-http-valgrind:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt tmp/nanohttp http://sijanec.eu/
+
+valgrind:
+ valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt ./sear.c