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

#
# include the configuration file
#

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

#
# Objects
#

OBJ=divisors.o

#
# Rules
#

all:	$(libp)LiDIA.a

appl:	divisors_appl$(EXE)

#
# Dependencies
#


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

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

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


#
# Clean
#

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

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

#
# end of makefile
#
