# Change it in spec if changing here
VERSION=0.1
NAME=ntpwatchd
FILES=ntpwatchd.c ntpwatchd.init ntpwatchd.pl Makefile ntpwatchd.spec
NV = $(NAME)-$(VERSION)

all: ntpwatchd

ntpwatch-debug: ntpwatch.c
	gcc -o $@ -std=gnu99 -DDPTR_LEVEL=9 -Wall -pedantic -O0 -ggdb $^ -lm

ntpwatchd: ntpwatchd.c
	diet -Os gcc -o $@ -std=gnu99 -DNDEBUG=1 -Wall -pedantic -ggdb $^ -lm

dist: 
	rm -rf $(NV) $(NV).tar $(NV).tar.gz
	mkdir $(NV)
	cp $(FILES) $(NV)
	tar cf $(NV).tar $(NV)
	gzip -9 $(NV).tar
