# Copyright (C) 1998 Christian Zagrodnick
# $Id: Makefile,v 1.5 1999/04/11 10:50:26 zagy Exp $


# config stuff is all there:
include Makefile.config

PROGS = inetdial-wrapper
LIBS= -lg++


all:	$(PROGS)

%: %.cc
	$(CC) $(CFLAGS) $(LDFLAGS) -o $* $< $(OBJECTS) $(LIBS)

clean:	cleanbin
	rm -f .depend *.o *~

cleanbin:
	rm -f $(PROGS)

install: all
	[ -d $(INSTALLPATH) ] || mkdir $(INSTALLPATH)
	install -o root -g nogroup -m 4750 $(PROGS) $(INSTALLPATH)
	install -o wwwrun -g nogroup inetdial.cgi $(INSTALLPATH)
	install -o wwwrun -g nogroup inetdial-logo.jpg $(LOGOPATH)

	@echo
	@echo "Don't forget:"
	@echo "	Install /root/bin/online."
	@echo "	Change your /etc/ppp/ip-up."
	@echo "	Let your webserver do some authentication."
	@echo "Sample scripts can be found in the samples dir."
	

