~ubuntu-branches/ubuntu/vivid/gcl/vivid

« back to all changes in this revision

Viewing changes to mp/makefile

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2002-03-04 14:29:59 UTC
  • Revision ID: james.westby@ubuntu.com-20020304142959-dey14w08kr7lldu3
Tags: upstream-2.5.0.cvs20020219
ImportĀ upstreamĀ versionĀ 2.5.0.cvs20020219

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AR = ar qc
 
2
MPDIR=.
 
3
RANLIB=ranlib
 
4
# if you are using gcc for the main link you probably dont need this:
 
5
GNULIB1= ${MPDIR}/gnulib1.o
 
6
NATIVE_CC=cc
 
7
 
 
8
# default mp files (overridden by machine.defs)
 
9
MPFILES= $(MPDIR)/mpi.o $(MPDIR)/mp2.o  $(MPDIR)/libmport.a
 
10
 
 
11
# begin makedefs
 
12
 
 
13
# use=386-linux
 
14
 
 
15
# for main link of raw_gcl
 
16
LIBS= -lm -lreadline -lncurses  -Wl,-static -lbfd -liberty
 
17
 
 
18
#The multi precision library stuff
 
19
MPFILES=$(MPDIR)/@MPI_FILE@ $(MPDIR)/libmport.a
 
20
 
 
21
 
 
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.
 
25
prefix=/usr
 
26
 
 
27
# where to place the info files
 
28
INFO_DIR=/usr/info/
 
29
 
 
30
# where to put emacs lisp files.
 
31
EMACS_SITE_LISP=/usr/local/share/emacs/20.7/site-lisp
 
32
 
 
33
# the default.el file
 
34
EMACS_DEFAULT_EL=/usr/local/share/emacs/20.7/site-lisp/default.el
 
35
 
 
36
# numerous TCL/TK variables culled from the tkConfig.sh and tclConfig.sh
 
37
# if these are found.
 
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}
 
49
TCL_DL_LIBS=-ldl
 
50
TCL_LIBS=-ldl  -lm
 
51
 
 
52
NOTIFY=yes
 
53
GCC=gcc
 
54
 
 
55
RL_OBJS=readline.o
 
56
 
 
57
RL_LIB=lsp/readline.o
 
58
 
 
59
GCLDIR=/fix/f/debian/mm/gcl/gcl-2.5.0.cvs
 
60
SHELL=/bin/sh
 
61
MACHINE=386-linux
 
62
 
 
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
 
68
 
 
69
 
 
70
# Machine dependent makefile definitions for intel 386,486 running linux
 
71
 
 
72
LBINDIR=/usr/local/bin
 
73
 
 
74
#OFLAG  =  -g 
 
75
OFLAG   =  -O 
 
76
#LIBS   = -lm 
 
77
 
 
78
ODIR_DEBUG= -O4 
 
79
#ODIR_DEBUG= -g
 
80
 
 
81
# This CC string will be used for compilation of the system,
 
82
# and also in the compiler::*cc* variable for later compilation of
 
83
# lisp files.
 
84
# (the -pipe is just since our file system is slow..)
 
85
CC = ${GCC} -pipe -fwritable-strings  -DVOL=volatile -I$(GCLDIR)/o -fsigned-char
 
86
 
 
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
 
89
LDCC=${CC} -static
 
90
LDCC=${CC}
 
91
 
 
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 
 
94
 
 
95
# Enable the fastloading mechanism which does not use ld -A
 
96
# requires c/rel_.. machine dependent code.
 
97
 
 
98
RSYM    = rsym
 
99
SFASL   = $(ODIR)/sfasl.o
 
100
 
 
101
 
 
102
#MPFILES= $(MPDIR)/mpi-386d.o   $(MPDIR)/libmport.a
 
103
 
 
104
 
 
105
# When using SFASL it is good to have (si::build-symbol-table)
 
106
INITFORM=(si::build-symbol-table)
 
107
 
 
108
# Use symbolic links
 
109
SYMB=-s
 
110
 
 
111
LIBFILES=bsearch.o
 
112
 
 
113
# the  make to use for saved_kcp the profiler.
 
114
KCP=kcp-bsd
 
115
 
 
116
MPFILES=${GMP_DIR}libgmp.a
 
117
 
 
118
 
 
119
# end makedefs
 
120
 
 
121
 
 
122
OBJS= mp_divul3.o  mp_bfffo.o mp_mulul3.o mp2.o mp_dblrsl3.o mp_dblrul3.o ${GNULIB1}
 
123
 
 
124
all:
 
125
        make all1 "MPFILES=$(MPFILES)"
 
126
 
 
127
all1: ${MPFILES}
 
128
 
 
129
$(MPDIR)/libmport.a: $(OBJS)
 
130
        rm -f libmport.a
 
131
        $(AR) libmport.a ${OBJS}
 
132
        ${RANLIB} libmport.a
 
133
 
 
134
.s.o:
 
135
        $(AS) $*.s -o $*.o
 
136
 
 
137
.c.o:
 
138
        $(CC)  -c $(OFLAG) -I../h -I. $(CFLAGS) $(ODIR_DEBUG) $*.c
 
139
 
 
140
mpi-386_no_under.o: mpi-386_no_under.s
 
141
        gcc -traditional -c $*.s -o $*.o
 
142
 
 
143
mpi-386d.o: mpi-386d.S
 
144
        gcc -traditional -c $*.S -o $*.o
 
145
 
 
146
mpi-bsd68k.s: mpi.c
 
147
        gcc -S  -I../h -O mpi.c -o mpi-bsd68k.s
 
148
 
 
149
mpi-sparc.s: mpi.c
 
150
        gcc -S -I../h -O mpi.c -o mpi-sparc.s
 
151
 
 
152
mpi-sol-sparc.s: mpi.c
 
153
        gcc -S -I../h -O mpi.c -o mpi-sol-sparc.s
 
154
 
 
155
${MPDIR}/mpi-386.o: ${MPDIR}/mpi-386.s
 
156
        $(AS) $*.s -o $*.o
 
157
 
 
158
${MPDIR}/mpi-386.s: mpi.c
 
159
        gcc -S -I../h -O mpi.c -o mpi-386.s
 
160
 
 
161
${MPDIR}/mpi-gcc.o: mpi.c
 
162
        gcc -c -O -I../h mpi.c -o mpi-gcc.o
 
163
 
 
164
${MPDIR}/gnulib1.o:
 
165
        ${NATIVE_CC} -c -O gnulib1.c
 
166
 
 
167
$(MPDIR)/mpi-386-winnt.o: $(MPDIR)/mpi-386-winnt.s
 
168
        $(AS) $*.s -o $*.o
 
169
 
 
170
clean:
 
171
        rm -f *.o *.a
 
172
 
 
173
make.defs:
 
174
        (cd .. ; for v in h/*.defs; do echo $$v: ; fgrep MPFILES $$v ; done ; true) > make.defs
 
175
 
 
176
 
 
177
tar:
 
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
 
180
        rm -f tmpx
 
181
 
 
182
 
 
183
 
 
184
 
 
185