
srcdir = @srcdir@
VPATH = @srcdir@

SHELL = /bin/sh

prefix = @prefix@
exec_prefix = @exec_prefix@
SBINDIR = @sbindir@
MANDIR = @mandir@
SRC = @srcdir@
CC = @CC@
CFLAGS = @CPPFLAGS@ @CFLAGS@ @DEFS@ -I.
LDFLAGS = @LDFLAGS@ @LIBS@
SED = @where_is_sed@
KILLALL = @where_is_killall@
AWK = @awk_mit_pfad@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@


all: ffingerd

ffingerd: ffingerd.o config.h
	$(CC) $(CFLAGS) -o ffingerd ffingerd.o $(LDFLAGS)
	@echo Ok, do a 'make install' or 'make install.all' now.

install.bin: ffingerd
	$(SHELL) $(srcdir)/mkinstalldirs $(SBINDIR) $(MANDIR) $(MANDIR)/man8
	$(INSTALL) ffingerd $(SBINDIR)/ffingerd
	$(INSTALL) -m 444 $(srcdir)/ffingerd.8 $(MANDIR)/man8

install: install.bin
	@echo Do not forget to fix /etc/inetd.conf and kill -HUP the inetd.

install.all: install.bin
	$(SRC)/install.conf $(SBINDIR)/ffingerd $(AWK) $(SED) $(KILLALL)

uninstall:
	rm -f $(SBINDIR)/ffingerd $(MANDIR)/man8/ffingerd*
	@echo Do not forget to tell inetd...

clean:
	rm -f ffingerd ffingerd.o

distclean:
	-rm -f ffingerd *~ config.cache config.log config.status Makefile config.h ffingerd.o
	cp -p Makefile.dummy Makefile

mrproper: distclean

Makefile: $(srcdir)/Makefile.in
	$(SHELL) config.status

