SHELL	= /bin/sh
CC	= gcc
OPT	= -O
DEBUG	= -g
INCL	= -I../aux
CFLAGS	= $(DEFS) $(INCL) $(OPT) $(DEBUG)
LIBOBJ	= 
LIBS	= 
LIB	= 
BIN_DIR	= 
MAN_DIR	= ../man
PROGS	= 
MANPAGES= $(MAN_DIR)/man1/ramhash.1 $(MAN_DIR)/man1/swaphash.1 \
	$(MAN_DIR)/man1/fshash.1

what:
	@sh makedefs

all:	$(LIB) $(PROGS)

manpages: $(MANPAGES)

$(LIB):	$(LIBOBJ)
	$(AR) $@ $?
	$(RANLIB) $@

$(MAN_DIR)/man1/ramhash.1: ramhash
	srctoman - $? >$@

$(MAN_DIR)/man1/swaphash.1: swaphash
	srctoman - $? >$@

$(MAN_DIR)/man1/fshash.1: fshash
	srctoman - $? >$@

clean:
	rm -f $(PROGS) $(LIB) *.o *core

depend: $(MAKES)
	(sed '1,/^# do not edit/!d' Makefile; \
	set -e; for i in [a-z][a-z0-9]*.c; do \
	    $(CC) -E $(DEFS) $(INCL) $$i | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
	    -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' -e 'p' -e '}'; \
	done) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile

# do not edit - this was generated with make depend
