summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 632a6c5dfc3c704dd16af596a30f4717993d84c4 (plain) (tree)




















                                                                                                                            
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