4
# if you are using gcc for the main link you probably dont need this:
5
GNULIB1= ${MPDIR}/gnulib1.o
8
# default mp files (overridden by machine.defs)
9
MPFILES= $(MPDIR)/mpi.o $(MPDIR)/mp2.o $(MPDIR)/libmport.a
15
# for main link of raw_gcl
16
LIBS= -lm -lreadline -lncurses -Wl,-static -lbfd -liberty
18
#The multi precision library stuff
19
MPFILES=$(MPDIR)/@MPI_FILE@ $(MPDIR)/libmport.a
22
# root for the installation, eg /usr/local
23
# This would cause make install to create /usr/local/bin/gcl and
24
# /usr/local/lib/gcl-2-??/* with some basic files.
27
# where to place the info files
30
# where to put emacs lisp files.
31
EMACS_SITE_LISP=/usr/local/share/emacs/20.7/site-lisp
34
EMACS_DEFAULT_EL=/usr/local/share/emacs/20.7/site-lisp/default.el
36
# numerous TCL/TK variables culled from the tkConfig.sh and tclConfig.sh
38
TK_CONFIG_PREFIX=/usr/lib
39
TK_LIBRARY=/usr/lib/tk8.2
40
TCL_LIBRARY=/usr/lib/tcl8.2
41
TK_XINCLUDES=-I/usr/X11R6/include
42
TK_INCLUDE=-I/usr/lib/../include
43
TCL_INCLUDE=-I/usr/lib/../include
44
TK_LIB_SPEC=-L/usr/lib -ltk8.2
45
TK_BUILD_LIB_SPEC=-L/usr/lib -ltk8.2
46
TK_XLIBSW=-L/usr/X11R6/lib -lX11
47
TK_XINCLUDES=-I/usr/X11R6/include
48
TCL_LIB_SPEC=-L/usr/lib -ltcl8.2${TCL_DBGX}
59
GCLDIR=/fix/f/debian/mm/gcl/gcl-2.5.0.cvs
63
# notes for redhat 6.0
64
# the configure should select the compiler GCC=/usr/bin/i386-glibc20-linux-gcc
65
# However for the gcl-tk directory, you must use plain 'gcc' since
66
# that must link with the tcl tk libs which have been compiled with it.
67
# so after configure change to GCC=gcc in the gcl-tk/makefile
70
# Machine dependent makefile definitions for intel 386,486 running linux
72
LBINDIR=/usr/local/bin
81
# This CC string will be used for compilation of the system,
82
# and also in the compiler::*cc* variable for later compilation of
84
# (the -pipe is just since our file system is slow..)
85
CC = ${GCC} -pipe -fwritable-strings -DVOL=volatile -I$(GCLDIR)/o -fsigned-char
87
# under redhat 6.1 and slackware 7.0 we needed to have this
88
# link be static, but should be ok with the fix to unixport/rsym_elf.c
92
# note for linuxaout on an elf machine add -b i486-linuxaout
93
# CC = gcc -pipe -fwritable-strings -DVOL=volatile -I$(GCLDIR)/o -fsigned-char -b i486-linuxaout
95
# Enable the fastloading mechanism which does not use ld -A
96
# requires c/rel_.. machine dependent code.
99
SFASL = $(ODIR)/sfasl.o
102
#MPFILES= $(MPDIR)/mpi-386d.o $(MPDIR)/libmport.a
105
# When using SFASL it is good to have (si::build-symbol-table)
106
INITFORM=(si::build-symbol-table)
113
# the make to use for saved_kcp the profiler.
116
MPFILES=${GMP_DIR}libgmp.a
122
OBJS= mp_divul3.o mp_bfffo.o mp_mulul3.o mp2.o mp_dblrsl3.o mp_dblrul3.o ${GNULIB1}
125
make all1 "MPFILES=$(MPFILES)"
129
$(MPDIR)/libmport.a: $(OBJS)
131
$(AR) libmport.a ${OBJS}
138
$(CC) -c $(OFLAG) -I../h -I. $(CFLAGS) $(ODIR_DEBUG) $*.c
140
mpi-386_no_under.o: mpi-386_no_under.s
141
gcc -traditional -c $*.s -o $*.o
143
mpi-386d.o: mpi-386d.S
144
gcc -traditional -c $*.S -o $*.o
147
gcc -S -I../h -O mpi.c -o mpi-bsd68k.s
150
gcc -S -I../h -O mpi.c -o mpi-sparc.s
152
mpi-sol-sparc.s: mpi.c
153
gcc -S -I../h -O mpi.c -o mpi-sol-sparc.s
155
${MPDIR}/mpi-386.o: ${MPDIR}/mpi-386.s
158
${MPDIR}/mpi-386.s: mpi.c
159
gcc -S -I../h -O mpi.c -o mpi-386.s
161
${MPDIR}/mpi-gcc.o: mpi.c
162
gcc -c -O -I../h mpi.c -o mpi-gcc.o
165
${NATIVE_CC} -c -O gnulib1.c
167
$(MPDIR)/mpi-386-winnt.o: $(MPDIR)/mpi-386-winnt.s
174
(cd .. ; for v in h/*.defs; do echo $$v: ; fgrep MPFILES $$v ; done ; true) > make.defs
178
(cd .. ; ls mp/*.c mp/*.s h/*.h h/*.defs mp/makefile mp/make.defs) | sed -e '/foo/d' > tmpx
179
(cd .. ; tar cvf - `cat mp/tmpx`) | compress -c > ${HOME}/tmp/mp.tar.Z