#####################################################################
#
#  Name .................... LiDIA/src/kernel/memory/dentzer/makefile 
#
#  Architecture : sparc7, sparc8, mips, linux, os2
#  Compiler     : gcc, g++ 
#  Flags        : -g -O2
#  Program Flags: -DDEBUG, -DMEMORY, -DERRIGN 
#  Author       : Papanikolaou Thomas
#  Release      : 1.0 
#  Last Change  : Mon Apr 11 16:09:08 MET DST 1994 
#  Copyright    : by the University of Saarland, 1994 
#

#
# include the configuration file
#

include ../../../../config/CONFIG

#
#
#

COBJ=mm.o

OBJ=$(COBJ) 

#
# Rules
#

.c.o:
	$(CC) -c $(CFLAGS) $(KERNEL_FLAGS) -DMM_STATISTICS -I$(LIDIA_INC) $<

#
#
#

all:	$(libp)LiDIA.a

appl:	test01 test02

#
# Dependencies
# 

mm.o:		mm.h

#
# The library of all these functions
#
 
$(libp)LiDIA.a: $(OBJ)
	$(AR) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(OBJ)
	$(RANLIB) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a


test01$(EXE):            $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a mm.h test01.o
	$(CC) $(CFLAGS) -o test01$(EXE) test01.o $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(C_LIB)

test02$(EXE):            $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a mm.h test02.o
	$(CC) $(CFLAGS) -o test02$(EXE) test02.o $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(C_LIB)


#
# Clean
#

clean:
	-$(RM) *.o 

veryclean:	clean 
	-$(RM) test01$(EXE) 
	-$(RM) test02$(EXE) 

distclean:	veryclean 

#
# end of makefile
#
