all:: timer timer.elc

DESTDIR=
CFLAGS= -O
BINDIR= /usr/sipb/bin
ELISPDIR= /usr/sipb/lib/elisp

timer: timer.o
	$(CC) -o timer timer.o

timer.elc: timer.el
	emacs -batch -f batch-byte-compile timer.el

clean::
	rm -f *.o timer *~ .#*

veryclean: clean
	rm -f timer.elc

install:: all
	install -s -c  timer $(DESTDIR)$(BINDIR)
	install -c timer.elc $(DESTDIR)$(ELISPDIR)
