#
#      $RCSfile: Makefile,v $
#      $Revision: 1.17 $
#      $Date: 1992/02/15 19:04:02 $
#      $Author: brown $
#      $State: Exp $
#      $Locker:  $
#
#      Copyright (C) 1989 J. Eliot B. Moss
#
INCLUDES = -I..
DEFINES = -DPROFILE
CPPFLAGS = $(INCLUDES) $(DEFINES)
CFLAGS = -g
CC=cc

srcs = Makefile \
	sv_debug.c sv_general.c sv_memory.c \
	sv_file.c  sv_globals.c sv_seg.c    sv_txn.c \
	sv_debug.h sv_general.h sv_memory.h sv_seg.h sv_types.h \
	sv_file.h  sv_globals.h sv_scode.h  sv_txn.h sv_xtypes.h \
        sv_bitmaps.h sv_bitmaps.c

objs =	sv_debug.o sv_file.o sv_txn.o \
	sv_general.o sv_seg.o sv_globals.o \
        sv_memory.o sv_bitmaps.o

all: $(objs)

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

deps:
	gcc -MM -DDEBUGGING -DPROFILE $(INCLUDES) *.c

clean:
	rm -f *.o *~

mneme-dist: $(srcs)
	cd ../mneme-$(RELEASE); mkdir server
	ln $(srcs) ../mneme-$(RELEASE)/server

sv_bitmaps.o : sv_bitmaps.c ../lang.h sv_bitmaps.h sv_types.h sv_xtypes.h \
  sv_scode.h sv_debug.h sv_globals.h 
sv_debug.o : sv_debug.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h \
  sv_debug.h 
sv_file.o : sv_file.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h sv_file.h \
  sv_globals.h sv_debug.h sv_seg.h sv_bitmaps.h 
sv_general.o : sv_general.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h \
  sv_general.h sv_globals.h sv_memory.h sv_debug.h 
sv_globals.o : sv_globals.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h \
  sv_globals.h 
sv_memory.o : sv_memory.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h \
  sv_memory.h sv_globals.h sv_debug.h 
sv_seg.o : sv_seg.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h sv_seg.h \
  sv_globals.h sv_debug.h sv_bitmaps.h 
sv_seg_unix.o : sv_seg_unix.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h \
  sv_seg.h sv_globals.h sv_debug.h 
sv_txn.o : sv_txn.c sv_types.h ../lang.h sv_xtypes.h sv_scode.h sv_debug.h \
  sv_txn.h 
