# Makefile for bsd/lib/libc/db/hash.

CC	= false
ARCH	= eniac
CFLAGS	= -O9 -D__DBINTERFACE_PRIVATE -I/usr/include/bsdcompat
CC1	= $(CC) -m$(ARCH) $(CFLAGS) -c

LIBBSD	= /usr/lib/$(CC)/$(ARCH)/libbsd.a

BSDOBJ	= \
	$(LIBBSD)(hash.o) \
	$(LIBBSD)(hash_bigkey.o) \
	$(LIBBSD)(hash_buf.o) \
	$(LIBBSD)(hash_func.o) \
	$(LIBBSD)(hash_log2.o) \
	$(LIBBSD)(hash_page.o) \

$(LIBBSD):	$(BSDOBJ)
	$(CC) -c.a -o $@ *.o
	rm *.o

$(LIBBSD)(hash.o):	hash.c
	$(CC1) hash.c

$(LIBBSD)(hash_bigkey.o):	hash_bigkey.c
	$(CC1) hash_bigkey.c

$(LIBBSD)(hash_buf.o):	hash_buf.c
	$(CC1) hash_buf.c

$(LIBBSD)(hash_func.o):	hash_func.c
	$(CC1) hash_func.c

$(LIBBSD)(hash_log2.o):	hash_log2.c
	$(CC1) hash_log2.c

$(LIBBSD)(hash_page.o):	hash_page.c
	$(CC1) hash_page.c
