#
# LiDIA Configuration File
# Created `Wed Jan 22 21:45:06 MET 1997' By `lidiaadm' using configure.
# Copyright (c) 1995 By The LiDIA Group -- All Rights Reserved.
#
# Authors -- Stefan Neis (SN), Andreas Monstadt (AMO),
#            Thomas Papanikolaou (TP)
#

#
# The Shell Used In All LiDIA Makefiles
#

                SHELL = /bin/sh

#
# The Make Command Used In All LiDIA Makefiles. The Next
# Line Is Empty If Make Sets the MAKE Variable.
#

                

#
# The Directory Where LiDIA Resides.
#
 
           LIDIA_HOME = /LiDIA/lidiaadm/Sources/CurrentVersion/LiDIA
 
#
# The Directory Where LiDIA Is To Be Installed.
#
 
    LIDIA_INSTALL_DIR = /usr/local
 
#
# The Architecture Which Is To Be Compiled
#
 
           LIDIA_ARCH = sparc8-sun-solaris2.5.1
               TARGET = sparc8

#
# The Kernel And The Interface To Be compiled
#
# Possible Integer Interfaces Are: libI, lip, gmp
#
# Possible Memory Managers Are: malloc, dentzer, boehm,
#                               default (no manager)
#

               BIGINT = libI
                  GMM = default


#
# The Compiler/Assembler/Linker Settings
#
# CC           -- is the C compiler
# CXX          -- is the C++ compiler
# CFLAGS       -- are the flags for the C compiler
# CXXFLAGS     -- are the flags for the C++ compiler
#                 on solaris define additionally -DSOLARIS
# CXXTMPLFLAGS -- are the flags for the C++ compiler
#		  when instantiating templates;
#		  for g++ define as -fno-implicit-templates 
# CXXXDBLFLAGS -- are the flags for the files that use the 
#		  class xdouble. On some machines (e.g., Intel),
#		  floating point registers keep more precision
#		  than a double which causes problems with the
#		  xdouble class, that relies on the precise
#		  definition of IEEE floating point. Set to
#		  -ffloat-store, if you use GNU's g++.
#
# LDFLAGS   -- are the flags for the C++ loader
# AS        -- is the assembler name
# ASPPFLAGS -- assembler file preprocessing: -DHAVE_ELF enables ELF 
#              assembly format (only needed for libI)
#
# CXXNAME   -- the name of the C++ compiler used in the makefiles
#              (for example g++)
#
 
                   CC     = cc
                  CXX     = CC
              CXXNAME     = CC
               CFLAGS     = -O -DSPARC -DSOLARIS
             CXXFLAGS     = -O -DSPARC -DSOLARIS
             CXXTMPLFLAGS = -fno-implicit-templates
             CXXXDBLFLAGS = 
              LDFLAGS     = 
                   AS     = as
              ASPPFLAGS   = -DHAVE_ELF

#
# Use 'ranlib' On Bsd Systems, 'echo' Otherwise
#
                RANLIB = ranlib

#
# Makefile targets for not full portable packages
#
# -- If you change the compiler by hand, you have to
#    define this value to 
#
#	SUNPROCC        if you use the SUNPRO Compiler
#       ${CXXNAME}	otherwise
#

        ALGNUMBER_CXXNAME = SUNPROCC


#
# Commands Used For Building The Documentation
#

                LATEX = /usr/tex/bin/latex
            MAKEINDEX = /usr/tex/bin/makeindex
                DVIPS = /usr/tex/bin/dvips

#
# Kernel Settings
#
 
         KERNEL_FLAGS = -DDOUBLES_HIGH_LOW  -DBASE32
           HAS_RANDOM = 
 
#
# Home And Installation Locations
#

              INSTALL = bin/install-sh -c
      INSTALL_PROGRAM = ${INSTALL}
         INSTALL_DATA = ${INSTALL} -m 644

         LIDIA_PRIMES = ${LIDIA_HOME}/lib/LiDIA
   LIDIA_PRIMES_FNAME = LIDIA_PRIMES
   LIDIA_GF2NDB_FNAME = GF2n.database

         LIDIA_INC    = ${LIDIA_HOME}/include
         LIDIA_BIN    = ${LIDIA_HOME}/bin/LiDIA/${LIDIA_ARCH}/${CXXNAME}
         LIDIA_LIB    = ${LIDIA_HOME}/lib/LiDIA/${LIDIA_ARCH}/${CXXNAME}
         LIDIA_DAT    = ${LIDIA_HOME}/lib
 
 LIDIA_INSTALL_PRIMES = ${LIDIA_INSTALL_DIR}/lib/LiDIA

 LIDIA_INSTALL_INC    = ${LIDIA_INSTALL_DIR}/include
 LIDIA_INSTALL_BIN    = ${LIDIA_INSTALL_DIR}/bin/LiDIA/${LIDIA_ARCH}/${CXXNAME}
 LIDIA_INSTALL_LIB    = ${LIDIA_INSTALL_DIR}/lib/LiDIA/${LIDIA_ARCH}/${CXXNAME}
 LIDIA_INSTALL_DAT    = ${LIDIA_INSTALL_DIR}/lib
 
#
# OS/2 Compatability Section 
#
 
              CXX-off =
                C_LIB = -lm
                  LIB = $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(C_LIB)
                  EXE =
                 libp = lib
                 objp = L

                  SEP = ;
               DIRSEP = /

#
# Make Command Macros
#
# AR       -- the archiver command
# RM       -- command used to remove files
# RMR      -- command used to remove directories
# CP       -- command used to copy files
# CPR      -- command used to copy directories
# MV       -- command used to move files
# LN       -- command used to make soft links (will disappear)
# CHMOD    -- command used to change the permission mode of a file
# TOUCH    -- command used to create an empty file
# MKDIR    -- command used to create a directory
#

                AR    = ar ru 
                RM    = rm -f
                RMR   = rm -rf
                CP    = cp -p
                CPR   = cp -rp
                MV    = mv -f
                LN    = ln -s
                CHMOD = chmod
                TOUCH = touch
                MKDIR = mkdir
                NOOMV = echo

#
# Special Makefile Rules
#
# a) file.c --> $(objp)file.o
#

.c.o:
	$(CXX) -c $(CXXFLAGS) -I$(LIDIA_INC) $*.c -o $(objp)$*.o
	$(NOOMV) $*.o $(objp)$*.o
	$(TOUCH) $*.o

#
# End Of File
#
