######################################################################
#
#  Name .................................... LiDIA/src/system/makefile
#
#  Architecture : sparc7, sparc8, mips, linux, os2
#  Compiler     : gcc, g++ 
#  Flags        : -g -O2
#  Program Flags: -DDEBUG, -DMEMORY, -DERRIGN 
#  Author       : Thomas Papanikolaou (TP) & Stefan Neis
#  Release      : 1.0 
#  Last Change  : Mon Apr 11 16:09:08 MET DST 1994 
#  Copyright    : by the LiDIA Group, 1995 
#

#
# include the configuration file
#

include ../../config/CONFIG

#
# Variables
#

OBJ=error.o warning.o debug.o memory.o timer.o

#
# Rules
#

all:	$(libp)LiDIA.a

appl:	timer_appl$(EXE)

#
# Dependencies
# 

error.o:		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)error.h
warning.o:		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)warning.h
debug.o:		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)debug.h
memory.o:		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)memory.h
timer.o:		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)timer.h

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

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

timer_appl$(EXE):    timer_appl.c
	$(CXX) $(CXXFLAGS) timer_appl.c $(CXX-off) -I$(LIDIA_INC) -L$(LIDIA_LIB) -o timer_appl$(EXE) $(LIB)
	-$(MV) timer_appl$(EXE) $(LIDIA_BIN)

#
# Clean
#

clean:
	-$(RM) *.o 

veryclean:	clean 
	-$(RM) timer_appl$(EXE)

#
# End Of Makefile
#
