# Generated automatically from Makefile.in by configure.
# Copyright (C) 1991 Swedish Institute of Computer Science

# THE SICSTUS EXTERNAL DATABASE
# -----------------------------

VERSION= 3

#
# Flags for the c-files:
#
#  For behavior:
#	NUM_WAYS=w	w=1 or 2. One- or two way cache (Two is default)
#	BITS_IN_PAGE_ADDRESS=a  9<a<32.  a is 2log number of bytes in one page.
#					 Default is 10.
#	BITS_IN_PAGE_NUMBER=n   0<n<32.  n is  2log number of pages in cahce
#					 Default is 8.
#			a+n<32. Cache size is w*(2**(a+n)) bytes.
#
#  For debugging:
#	CHECK_MAGIC:	Check struct-type at every access of 
#			the internal structure.
#	TRACE_KEYS:	Give extended trace information at chrashes.
#			(Makes the execution somewhat slower)
#	CHECK_STRUCT:	Traverse the complete structure and check it
#			'very often' during the execution (quadratic time!)
#	STAT_*:		Generate statistics
#
# Set them by defining CEXTRA in the make-call, for example:
#	make CEXTRA='-DCHECK_MAGIC -DCHECK_STRUCTURE'


SHELL=/bin/sh

# These Makefile-variables are not suitable for automatic substitution by
# configure, since they are not fixed.
SP_BIN=/home/jojo/pl6/distr/platform2/sicstus3/sun45/bin
SP_INC=/home/jojo/pl6/distr/platform2/sicstus3/sun45/include
SP_LIB=/home/jojo/pl6/distr/platform2/sicstus3/sun45/lib/sicstus
CC=gcc

OPTIONS=
CFLAGS=-O2 
INCR_CFLAGS=

Os= db_conf.o alloc.o file.o stats.o top.o insert.o print.o cache.o message.o hash.o
HEADERS= decl.h param.h magic.h stats.h cache.h

LIBDIR=/home/jojo/pl6/distr/platform2/sicstus3/sun45/lib/sicstus/library

.SUFFIXES: .o .c
.c.o:
	-$(CC) $(CFLAGS) $(CEXTRA) $(INCR_CFLAGS) -c $*.c -I$(SP_INC)

dyn:	dynlast all

dynlast:
	touch dynlast
	rm -f $(Os)
	rm -f statlast

stat:	statlast all

statlast:
	touch statlast
	rm -f $(Os)
	rm -f dynlast

all:$(P)	$(Os)

db_conf.c: config
	./config > db_conf.c
	sleep 1

config:	config.c
	$(CC) $(CFLAGS) $(CEXTRA) -DVER="\"$(VERSION)\"" -I$(SP_INC) -o config config.c

clean:	
	rm -f $(Os) config db_conf.c
	rm -f dynlast statlast

depend:
	makedepend $(DEFS) $(CEXTRA) *.[ch]

# DO NOT DELETE THIS LINE -- make depend depends on it.

config.o: $(HEADERS) config.c
alloc.o: $(HEADERS) alloc.h alloc.c
file.o: $(HEADERS) file.h file.c
stats.o: $(HEADERS) alloc.h stats.c
top.o: $(HEADERS) insert.h alloc.h file.h top.c
insert.o: $(HEADERS) insert.h alloc.h insert.c
print.o: $(HEADERS) print.c
cache.o: $(HEADERS) alloc.h file.h cache.c
message.o: $(HEADERS) message.c
hash.o:
db_conf.o: config.c

