1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
#############################################################################
##
#W Makefile GAP source Frank Celler
##
#H @(#)$Id: Makefile,v 4.15.4.1 2006/03/06 13:37:07 gap Exp $
##
#Y Copyright (C) 1997, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany
##
## This file creates the `configure' scripts using `autoconf'.
##
CC=cc
SOURCE=\
ariths blister bool c_meths1 c_type1 \
c_oper1 c_filt1 c_random \
calls code compiler compstat costab \
cyclotom dt dteval exprs finfield\
funcs gap gasman gvars integer \
intrprtr listfunc listoper lists objcftl \
objects objfgelm objpcgel objscoll objccoll\
opers permutat plist precord range \
rational read records saveload scanner \
sctable set stats streams string \
sysfiles system tietze vars vecgf2 \
vec8bit vector vecffe weakptr iostream \
float
default: configure.out ../configure
configure.out: configure.in aclocal.m4 config.hin
autoconf
sed -e 's%^srcdir=$$%srcdir=../../src%' < configure > configure.out
chmod 755 configure.out
rm configure
../configure: ../configure.in
( cd .. ; autoconf )
Makegap.in: AlwaysMakegap.in
AlwaysMakegap.in:
@echo "creating 'Makegap.in'"
@cp Makegap.top Makegap.in
@echo >> Makegap.in
@echo '# OBJECTS are generated from SOURCE' >> Makegap.in
@echo -n "OBJECTS=" >> Makegap.in
@eval 'for i in $(SOURCE); do echo -n "$$i.o "; done' >> Makegap.in
@echo '$$(GAPMPI_OBJ)' >> Makegap.in
@echo >> Makegap.in
@echo >> Makegap.in
@echo '# compile and link GAP' >> Makegap.in
@echo 'gap: $$(OBJECTS)' >> Makegap.in
@echo ' $$(CC) $$(CFLAGS) $$(LDFLAGS) -o gap $$(OBJECTS) -lm $$(MPILIBS) @LIBS@' >> Makegap.in
@echo >> Makegap.in
@echo '# dependencies are automatically generated' >> Makegap.in
@(for i in `eval 'echo $(SOURCE)'`; do \
$(CC) -MM -I .. -DUSE_PRECOMPILED ../src/$$i.c; \
echo ' $$(CC) -I. -I../.. -DCONFIG_H $$(CFLAGS)' -o $$i.o -c ../src/$$i.c; \
echo ; \
done \
) | sed -e 's:../src:@srcdir@:g' >> Makegap.in
@cat Makegap.bottom >> Makegap.in
|