#
# Makefile for Wcal
#

# Freel free to change the four variables below.

BATCH_MODE = 0	# 0 or 1
PREFIX = /usr/local
HTTPD_GROUP_GUESSES = httpd www-data www wwwadmin nobody
DEFAULT_HTML_DIR = /home/httpd/html/wcal

bin:	index.cgi checkalarm

index.cgi: index.c
	gcc -Wall -O2 index.c -o index.cgi
	strip index.cgi

checkalarm: checkalarm.c
	gcc -Wall -O2 checkalarm.c -o checkalarm
	strip checkalarm

clean:
	-rm -f *~ index.cgi checkalarm wcald wcal.conf

install: index.cgi checkalarm
	@sh install.sh '$(BATCH_MODE)' '$(PREFIX)' '$(HTTPD_GROUP_GUESSES)' '$(DEFAULT_HTML_DIR)'

uninstall: 
	@sh uninstall.sh
