######################################################################
#
#  Name ............................... LiDIA/src/portability/makefile
#
#  Architecture : sparc7, sparc8, mips, linux, hp, os2
#  Compiler     : gcc, g++ 
#  Flags        : -g -O2
#  Program Flags: -DDEBUG, -DMEMORY, -DERRIGN 
#  Author       : Papanikolaou Thomas & Stefan Neis
#  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


#
# Objects that are not contained in the operating
# system libraries but used by some LiDIA classes.
#

OBJ=port_dummy.o $(HAS_RANDOM)



#
# Rules
#

all:	$(libp)LiDIA.a

appl:



#
# Dependencies
#

random.o:	$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)random.h
	$(CC) -c $(CFLAGS) -I$(LIDIA_INC) random.c
	$(MV) random.o $(objp)random.o
	$(TOUCH) random.o



$(libp)LiDIA.a:		$(OBJ) 
	-$(AR) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(objp)*.o


#
# Ranlib
#

ranlib:
	$(RANLIB) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a


#
# Clean
#

clean:
	-$(RM) *.o 
	-$(RMR) ptrepository

veryclean:	clean



#
# End Of Makefile
#
