tinymush-3.1p2/game/backups/
tinymush-3.1p2/game/bin/
tinymush-3.1p2/game/data/
tinymush-3.1p2/game/modules/
tinymush-3.1p2/game/modules/old/
tinymush-3.1p2/src/modules/comsys/
tinymush-3.1p2/src/modules/hello/
tinymush-3.1p2/src/modules/mail/
tinymush-3.1p2/src/tools/
# This file was modified for TinyMUSH:
#
# $Log: Makefile.in,v $
# Revision 1.5  2004/08/16 19:31:07  alierak
# add GPL-required modification notices using cvs log keyword
#
# Revision 1.4  2003/03/05 18:37:25  rmg
# distclean now needs to be able to remove the .libs directory
#
# Revision 1.3  2003/02/22 06:52:56  rmg
# don't clean too much on recursive make clean
#
# Revision 1.2  2002/10/27 02:31:25  rmg
# use -ltinygdbm to avoid broken system library gdbm on linux
#
# Revision 1.1  1999/06/21 18:39:19  dpassmor
# added gdbm-1.8.0

#### Start of system configuration section. ####

srcdir = @srcdir@
top_builddir = @srcdir@
VPATH = @srcdir@

CC = @CC@
LIBTOOL = @LIBTOOL@

# GDBM 1.8 builds shared library version 2.0
SHLIB_VER = 2 0 0

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

# File ownership and group
BINOWN = bin
BINGRP = bin

MAKEINFO = makeinfo
TEXI2DVI = texi2dvi

DEFS =

# Where the system [n]dbm routines are...
LIBS = @LIBS@ -lc

# SunOS 4 users might wish to add '-fpcc-struct-return' to CFLAGS. see INSTALL.
CFLAGS = -O
LDFLAGS =

# Common prefix for installation directories
prefix = /usr/local
exec_prefix = $(prefix)
binprefix = $(exec_prefix)
manprefix = $(prefix)

# Directory in which to put libtinygdbm.a.
libdir = $(exec_prefix)/lib
# The include directory for gdbm.h and dbm.h.
includedir = $(prefix)/include
# Info and man directories.
infodir = $(prefix)/info
man3dir = $(prefix)/man/man3
manext = 3

#### End of system configuration section. ####

.SUFFIXES:
.SUFFIXES: .c .lo .o

.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<

.c.lo:
	$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<

SHELL = /bin/sh

PROGS = libtinygdbm.la testgdbm testdbm testndbm tndbm tdbm conv2gdbm

DBM_CF = dbminit.c delete.c fetch.c store.c seq.c close.c

NDBM_CF = dbmopen.c dbmdelete.c dbmfetch.c dbmstore.c dbmseq.c \
	dbmclose.c dbmdirfno.c dbmpagfno.c dbmrdonly.c

GDBM_CF = gdbmopen.c gdbmdelete.c gdbmfetch.c  gdbmstore.c gdbmclose.c \
	gdbmreorg.c gdbmseq.c gdbmsync.c gdbmerrno.c gdbmexists.c gdbmfdesc.c \
	gdbmsetopt.c bucket.c falloc.c findkey.c global.c hash.c update.c \
	version.c

TEST_CF = testdbm.c testndbm.c testgdbm.c


DBM_OF = dbminit.o delete.o fetch.o store.o seq.o close.o

NDBM_OF = dbmopen.o dbmdelete.o dbmfetch.o dbmstore.o dbmseq.o \
	dbmclose.o dbmdirfno.o dbmpagfno.o dbmrdonly.o

GDBM_OF = gdbmopen.o gdbmdelete.o gdbmfetch.o  gdbmstore.o gdbmclose.o \
	gdbmreorg.o gdbmseq.o gdbmsync.o gdbmerrno.o gdbmexists.o gdbmfdesc.o \
	gdbmsetopt.o bucket.o falloc.o findkey.o global.o hash.o update.o \
	version.o

DBM_LOF = dbminit.lo delete.lo fetch.lo store.lo seq.lo close.lo

NDBM_LOF = dbmopen.lo dbmdelete.lo dbmfetch.lo dbmstore.lo dbmseq.lo \
	dbmclose.lo dbmdirfno.lo dbmpagfno.lo dbmrdonly.lo

GDBM_LOF = gdbmopen.lo gdbmdelete.lo gdbmfetch.lo  gdbmstore.lo gdbmclose.lo \
	gdbmreorg.lo gdbmseq.lo gdbmsync.lo gdbmerrno.lo gdbmexists.lo \
	gdbmfdesc.lo gdbmsetopt.lo bucket.lo falloc.lo findkey.lo global.lo \
	hash.lo update.lo version.lo

TEX_F = gdbm.aux gdbm.cp gdbm.dvi gdbm.fn gdbm.ky gdbm.log gdbm.pg \
	gdbm.toc gdbm.tp gdbm.vr

TEXI_F = gdbm.info
     
SRCS = $(DBM_CF) $(NDBM_CF) $(GDBM_CF) $(TEST_CF)

OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF)

LOBJS = $(DBM_LOF) $(NDBM_LOF) $(GDBM_LOF)

HDRS = gdbmdefs.h extern.h gdbmerrno.h systems.h dbm.h ndbm.h gdbmconst.h \
	proto.h

MSCFILES = COPYING ChangeLog Makefile.in README gdbm.3 gdbm.texinfo \
	gdbm.info NEWS INSTALL gdbm.proto gdbm.proto2 conv2gdbm.c \
	configure configure.in getopt.c getopt.h samp1.cc \
	autoconf.h.in install-sh mkinstalldirs config.guess config.sub \
	aclocal.m4 ltconfig ltmain.sh

DISTFILES = $(SRCS) $(HDRS) $(MSCFILES)

all: libtinygdbm.la

progs: $(PROGS)

install: libtinygdbm.la gdbm.h gdbm.info
	$(srcdir)/mkinstalldirs $(libdir) $(includedir) $(man3dir) $(infodir)
	$(LIBTOOL) install -c libtinygdbm.la $(libdir)/libtinygdbm.la
	$(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h $(includedir)/gdbm.h
	$(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \
		$(man3dir)/gdbm.3
	$(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \
		$(infodir)/gdbm.info

install-compat:
	$(srcdir)/mkinstalldirs $(includedir)
	$(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/dbm.h \
		$(includedir)/dbm.h
	$(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/ndbm.h \
		$(includedir)/ndbm.h

#libtinygdbm.a: $(OBJS) gdbm.h
#	rm -f libtinygdbm.a
#	ar q libtinygdbm.a $(OBJS)
#	$(RANLIB) libtinygdbm.a

libtinygdbm.la: $(LOBJS) gdbm.h
	rm -f libtinygdbm.la
	$(LIBTOOL) --mode=link $(CC) -o libtinygdbm.la -rpath $(libdir) \
		-version-info $(SHLIB_VER) $(LOBJS)

gdbm.h:	gdbm.proto gdbmerrno.h gdbm.proto2
	rm -f gdbm.h
	cp $(srcdir)/gdbm.proto gdbm.h
	chmod +w gdbm.h
	grep _ $(srcdir)/gdbmerrno.h >> gdbm.h
	cat $(srcdir)/gdbm.proto2 >> gdbm.h
	chmod -w gdbm.h

testgdbm: testgdbm.o libtinygdbm.la @LIBOBJS@
	$(LIBTOOL) $(CC) $(LDFLAGS) -o testgdbm testgdbm.o libtinygdbm.la @LIBOBJS@

testdbm: testdbm.o libtinygdbm.la
	$(LIBTOOL) $(CC) $(LDFLAGS) -o testdbm testdbm.o libtinygdbm.la

tdbm: testdbm.o
	$(CC) $(LDFLAGS) -o tdbm testdbm.o $(LIBS)

testndbm.o: testndbm.c
	$(CC) -c -I. -I$(srcdir) $(CFLAGS) $(DEFS) -DGNU $(srcdir)/testndbm.c

testndbm: testndbm.o libtinygdbm.la
	$(LIBTOOL) $(CC) $(LDFLAGS) -o testndbm testndbm.o libtinygdbm.la

tndbm.o: testndbm.c
	cp $(srcdir)/testndbm.c ./tndbm.c
	$(CC) -c -I. -I$(srcdir) $(CFLAGS) $(DEFS) ./tndbm.c
	rm -f ./tndbm.c

tndbm: tndbm.o
	$(CC) $(LDFLAGS) -o tndbm tndbm.o $(LIBS)

conv2gdbm: conv2gdbm.o libtinygdbm.la @LIBOBJS@
	$(LIBTOOL) $(CC) $(LDFLAGS) -o conv2gdbm conv2gdbm.o $(LIBS) libtinygdbm.la @LIBOBJS@

lintgdbm: 
	lint $(DEFS) $(LFLAGS) $(DBM_CF) $(NDBM_CF) $(GDBM_CF) testgdbm.c

TAGS: $(SRCS)
	etags $(SRCS)

info: gdbm.info

gdbm.info:
	$(MAKEINFO) $(srcdir)/gdbm.texinfo

dvi: gdbm.dvi

gdbm.dvi:
	$(TEXI2DVI) $(srcdir)/gdbm.texinfo

clean:
	rm -rf $(TEX_F) *.o *.lo core *.core junk*

mostlyclean: clean

distclean: clean
	rm -rf Makefile autoconf.h config.status config.cache config.log \
		gdbm.h libtool $(TEXI_F) *~ *.a *.la .libs _libs $(PROGS)

realclean: distclean
	rm -f TAGS
	-rm -f \
	  `sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/gdbm-\1/p' \
		version.c`.tar.gz

dist:
	echo \
	  `sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/gdbm-\1/p' \
		version.c` > .fname
	rm -rf `cat .fname`
	mkdir `cat .fname`
	ln $(DISTFILES) `cat .fname`
	tar chf `cat .fname`.tar `cat .fname`
	gzip `cat .fname`.tar
	rm -rf `cat .fname` .fname

# dbm files
dbminit.o:	autoconf.h gdbmdefs.h proto.h extern.h gdbmerrno.h
delete.o:	autoconf.h gdbmdefs.h proto.h extern.h
fetch.o:	autoconf.h gdbmdefs.h proto.h extern.h
store.o:	autoconf.h gdbmdefs.h proto.h extern.h
seq.o:		autoconf.h gdbmdefs.h proto.h extern.h

# ndbm files
dbmopen.o:	autoconf.h gdbmdefs.h extern.h gdbmerrno.h
dbmdelete.o:	autoconf.h gdbmdefs.h extern.h
dbmfetch.o:	autoconf.h gdbmdefs.h extern.h
dbmstore.o:	autoconf.h gdbmdefs.h extern.h
dbmseq.o:	autoconf.h gdbmdefs.h extern.h
dbmclose.o:	autoconf.h gdbmdefs.h systems.h
dbmpagfno.o:	autoconf.h gdbmdefs.h extern.h
dbmdirfno.o:	autoconf.h gdbmdefs.h extern.h


# gdbm files
gdbmclose.o:	autoconf.h gdbmdefs.h 
gdbmdelete.o:	autoconf.h gdbmdefs.h gdbmerrno.h 
gdbmfetch.o:	autoconf.h gdbmdefs.h gdbmerrno.h 
gdbmfdesc.o:	autoconf.h gdbmdefs.h
gdbmopen.o:	autoconf.h gdbmdefs.h gdbmerrno.h 
gdbmreorg.o:	autoconf.h gdbmdefs.h gdbmerrno.h extern.h
gdbmseq.o:	autoconf.h gdbmdefs.h 
gdbmstore.o:	autoconf.h gdbmdefs.h gdbmerrno.h 

# gdbm support files
bucket.o:	autoconf.h gdbmdefs.h
falloc.o:	autoconf.h gdbmdefs.h
findkey.o:	autoconf.h gdbmdefs.h
global.o:	autoconf.h gdbmdefs.h gdbmerrno.h 
hash.o:		autoconf.h gdbmdefs.h
update.o:	autoconf.h gdbmdefs.h
version.o:
extern.h:
gdbmdefs.h:	gdbmconst.h systems.h
	touch gdbmdefs.h

# other programs
testgdbm.o:	autoconf.h gdbmdefs.h extern.h gdbmerrno.h systems.h
testdbm.o:	autoconf.h
testndbm.o:	autoconf.h ndbm.h
tdbm.o:		autoconf.h
conv2gdbm.o:	autoconf.h gdbm.h