# This should point to the CVSROOT of your repository.
CVSROOT=/Users/cvs
# This should be the name of your cvs group.
CVSGROUP=cvs

CLFAGS+=-Wall
DESTDIR=/usr/bin/

all: cvssh cvswrap

install: all
	install -o root -g wheel -m 4755 cvswrap ${DESTDIR}
	install -o root -g wheel -m 0755 cvssh   ${DESTDIR}

cvssh: cvssh.c
	${CC} ${CFLAGS} -o $@ $<

cvswrap: cvswrap.c
	${CC} ${CFLAGS} -o $@ $< -DACCESS="\"${CVSROOT}/CVSROOT/access\"" \
	    -DCVSGROUP="\"${CVSGROUP}\""

clean:
	rm -f cvssh cvswrap
