GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
############################################################################ # Makefile for the CARAT package, distributed by # Lehrstuhl B fuer Mathematik # RWTH Aachen # Templergraben 64 # 52064 Aachen # Germany # email: [email protected] # # To install the CARAT package, just edit the variables # TOPDIR (which is the present directory), CC and CFLAGS # below. # If you need additional include pathes, please add them # to the compiler, ie CC= gcc -I/YOUR_INCUDE_PATH # # If GMP is already installed on your system, then compilation time # can be shortened by removing "Gmp" from the target "ALL". # # If you encounter any problems, please contact # [email protected] ############################################################################ # # put the top level directory of the Installation here # ( try "pwd" if in doubt) #� TOPDIR=/home/carat # # normal installations on Linux should work with # CC = gcc # # For Mac OS X 10.4, please try # CC = gcc -I/sw/include #� CC = gcc # There are some special preprocessor flags which set some # memory diagnostics: # Use -DDIAG1 to check for not properly used memory only # when calling malloc(...) and free(..), and -DDIAG2 to # have a general control whats going on. THIS IS VERY SLOW. # For the normal user we recommend neither to use -DDIAG1 nor -DDIAG2! CFLAGS = -O # -g -Wall -DDIAG1 # the flag -fwritable-strings is # required for the use with gcc # CFLAGS = -g -Aa # for a HP-UX-machine using cc # CFLAGS = -mcpu=pentiumpro # The part below doesn't (better: shouldn't) need any editing #============================================================================ # Some SUN-OS will need ranlib to be run on the library. # This part is stolen from the gmp-Makefile RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ] RANLIB = ranlib ALL: Makefile\ Autgrp\ Base\ Bravais\ Contrib\ Datei\ Getput\ Graph\ Hyperbolic\ Idem\ Links\ Longtools\ Name\ Matrix\ M_alloc\ Orbit\ Polyeder\ Presentation\ Qcatalog\ Reduction\ Sort\ Symm\ Tools\ TSubgroups\ Voronoi\ Zassen\ ZZ\ Gmp\ Executables Autgrp: Makefile functions/Autgrp/Makefile cd functions/Autgrp; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Base: Makefile functions/Base/Makefile cd functions/Base; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Bravais: Makefile functions/Bravais/Makefile cd functions/Bravais;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Contrib: Makefile functions/Contrib/Makefile cd functions/Contrib;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Datei: Makefile functions/Datei/Makefile cd functions/Datei;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Getput: Makefile functions/Getput/Makefile cd functions/Getput;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Graph: Makefile functions/Graph/Makefile cd functions/Graph;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Hyperbolic: Makefile functions/Hyperbolic/Makefile cd functions/Hyperbolic; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Idem: Makefile functions/Idem/Makefile cd functions/Idem; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Links: cd tables/symbol; make cd lib ; rm -f libfunctions.a ; ln -f -s functions.a libfunctions.a rm -f $(TOPDIR)/functions/Gmp/m_alloc.h ln -f -s $(TOPDIR)/functions/Gmp/longlong.h $(TOPDIR)/include/longlong.h ln -f -s $(TOPDIR)/functions/gmp-4.2.1 $(TOPDIR)/functions/Gmp Longtools: Makefile functions/Longtools/Makefile cd functions/Longtools; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Name: Makefile functions/Name/Makefile cd functions/Name;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Matrix: Makefile functions/Matrix/Makefile cd functions/Matrix;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) M_alloc: Makefile functions/M_alloc/Makefile cd functions/M_alloc;make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Orbit: Makefile functions/Orbit/Makefile cd functions/Orbit; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Polyeder: Makefile functions/Polyeder/Makefile cd functions/Polyeder; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Presentation: Makefile functions/Presentation/Makefile cd functions/Presentation; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Qcatalog: Makefile tables/qcatalog.tar.gz cd tables; if [ ! -d qcatalog ] ; then gunzip -c qcatalog.tar.gz | tar xvf - ; fi Reduction: Makefile functions/Reduction/Makefile cd functions/Reduction; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Sort: Makefile functions/Sort/Makefile cd functions/Sort; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Symm: Makefile functions/Symm/Makefile cd functions/Symm; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Tools: Makefile functions/Tools/Makefile cd functions/Tools; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) TSubgroups: Makefile functions/TSubgroups/Makefile cd functions/TSubgroups; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Voronoi: Makefile functions/Voronoi/Makefile cd functions/Voronoi; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Zassen: Makefile functions/Zassen/Makefile cd functions/Zassen; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) ZZ: Makefile functions/ZZ/Makefile cd functions/ZZ; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) Gmp: cd functions ; tar xvzf gmp-4.2.1.tar.gz cd functions/Gmp ; ./configure --prefix="$(TOPDIR)" ;\ make CFLAGS="$(CFLAGS) -static" CC="$(CC)" install Executables: bin/Makefile if $(RANLIB_TEST) ; then $(RANLIB) lib/functions.a; else true; fi if $(RANLIB_TEST) ; then $(RANLIB) lib/libpresentation.a; else true; fi if $(RANLIB_TEST) ; then $(RANLIB) lib/libm_alloc.a; else true; fi cd bin; make CC="$(CC)" CFLAGS="$(CFLAGS)" TOPDIR=$(TOPDIR) clean: cd bin; make clean cd functions/Autgrp; make clean cd functions/Base; make clean cd functions/Bravais; make clean cd functions/Contrib; make clean cd functions/Datei; make clean cd functions/Getput; make clean cd functions/Graph; make clean cd functions/Hyperbolic; make clean cd functions/Idem; make clean cd functions/Longtools; make clean cd functions/Name; make clean cd functions/Matrix; make clean cd functions/M_alloc; make clean cd functions/Orbit; make clean cd functions/Polyeder; make clean cd functions/Presentation; make clean cd functions/Reduction; make clean cd functions/Sort; make clean cd functions/Symm; make clean cd functions/Tools; make clean cd functions/TSubgroups; make clean cd functions/Voronoi; make clean cd functions/Zassen; make clean cd functions/ZZ; make clean rm -rf functions/gmp-4.2.1 rm -rf functions/Gmp rm -f lib/libgmp.a rm -f lib/*gmp* rm -f lib/libm_alloc.a rm -f lib/libpresentation.a rm -f lib/functions.a rm -f include/longlong.h