1 |
|
|
2 |
OFLAG = -O |
# notes for redhat 6.0 |
3 |
#LIBS = -lm -lsocket -lnsl |
# the configure should select the compiler GCC=/usr/bin/i386-glibc20-linux-gcc |
4 |
|
# However for the gcl-tk directory, you must use plain 'gcc' since |
5 |
|
# that must link with the tcl tk libs which have been compiled with it. |
6 |
|
# so after configure change to GCC=gcc in the gcl-tk/makefile |
7 |
|
|
|
# tell linker to remember where it got the shared object... |
|
|
# should have the same for TCL/TK if you used shared libs.. |
|
|
X11_LIBS=-Xlinker -R${X11_LIBS_DIR} -L${X11_LIBS_DIR} -lX11 |
|
|
|
|
|
ODIR_DEBUG=-O4 |
|
|
|
|
|
#gcc 2.1 and 2.2 compile akcl correctly as far as I have been able to determine. |
|
|
#gcc 2.3.3 does not compile akcl correctly |
|
|
#gcc 2.4.5 does compile akcl, but does fail on some subsequent tests. |
|
|
#gcc 2.5.3 does compile gcl correctly however it has a known bug. |
|
|
#gcc 2.6.3 appears to compile gcl ok |
|
|
# gcc 2.7.2 and 2.7.2.1 cause the gcl to core dump on start up of saved |
|
|
# image. something to do with 'ctor'.. Add -B flag as in: |
|
|
# get gcc -B /lusr/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.6.3/ |
|
|
# to use previous gcc. Note final '/' |
|
|
# gcc 2.8.1 compiles gcl ok (running on solaris 2.6). |
|
|
# used sun's make from /usr/ccs/bin |
|
|
|
|
|
CC = gcc -I${GCLDIR}/o -DVOL=volatile -fsigned-char |
|
|
# LDCC= ${CC} -static |
|
|
# we can use non static linking now |
|
|
LDCC= ${CC} |
|
|
ODIR_DEBUG= -O |
|
|
|
|
|
#The new optional for money compiler has not been tested recently. |
|
|
# it used to fail to compile o/format.o correctly. |
|
|
#CC = /usr/local/lang/cc -DVOL= -I$(GCLDIR)/o -Bstatic -temp=. -pipe |
|
|
ODIR_DEBUG= -O4 |
|
8 |
|
|
9 |
AS=/usr/ccs/bin/as -P -D__svr4__ |
# Machine dependent makefile definitions for intel 386,486 running linux |
10 |
|
|
11 |
CFLAGS = -c $(DEFS) -I../h |
LBINDIR=/usr/local/bin |
12 |
|
|
13 |
MAIN = ../o/main.o |
#OFLAG = -g -Wall |
14 |
|
#OFLAG = -g -Wall -fomit-frame-pointer -Werror |
15 |
|
#LIBS = -lm |
16 |
|
|
17 |
MPFILES=$(MPDIR)/mpi-sol-sparc.o $(MPDIR)/sparcdivul3.o $(MPDIR)/libmport.a |
#ODIR_DEBUG= -g -Wall -fomit-frame-pointer -Werror |
18 |
#MPFILES=${MPDIR}/mpi.o ${MPDIR}/libmport.a |
#ODIR_DEBUG= -g -Wall |
19 |
|
|
20 |
|
# This CC string will be used for compilation of the system, |
21 |
|
# and also in the compiler::*cc* variable for later compilation of |
22 |
|
# lisp files. |
23 |
|
# (the -pipe is just since our file system is slow..) |
24 |
|
#CC = ${GCC} -pipe -fwritable-strings -DVOL=volatile -I$(GCLDIR)/o -fsigned-char -Wall $(EXTRA_CFLAGS) -fomit-frame-pointer -Werror -g |
25 |
|
|
26 |
|
# under redhat 6.1 and slackware 7.0 we needed to have this |
27 |
|
# link be static, but should be ok with the fix to unixport/rsym_elf.c |
28 |
|
LDCC=${CC} -static |
29 |
|
LDCC=${CC} |
30 |
|
|
31 |
|
# note for linuxaout on an elf machine add -b i486-linuxaout |
32 |
|
# CC = gcc -pipe -fwritable-strings -DVOL=volatile -I$(GCLDIR)/o -fsigned-char -b i486-linuxaout |
33 |
|
|
34 |
|
# Enable the fastloading mechanism which does not use ld -A |
35 |
|
# requires c/rel_.. machine dependent code. |
36 |
|
|
37 |
RSYM = rsym |
RSYM = rsym |
38 |
|
ifneq ($(findstring bfd,$(LIBS)),) |
39 |
|
RSYM = |
40 |
|
endif |
41 |
|
#ifneq ($(findstring -ldl,$(LIBS)),) |
42 |
|
#RSYM = |
43 |
|
#endif |
44 |
|
|
45 |
SFASL = $(ODIR)/sfasl.o |
SFASL = $(ODIR)/sfasl.o |
46 |
|
|
47 |
# This function will be run before dumping. |
|
48 |
|
#MPFILES= $(MPDIR)/mpi-386d.o $(MPDIR)/libmport.a |
49 |
|
|
50 |
|
|
51 |
# When using SFASL it is good to have (si::build-symbol-table) |
# When using SFASL it is good to have (si::build-symbol-table) |
52 |
INITFORM=(si::build-symbol-table) |
INITFORM=(si::build-symbol-table) |
53 |
|
|
|
GNULIB1= |
|
|
|
|
54 |
# Use symbolic links |
# Use symbolic links |
55 |
SYMB=-s |
SYMB=-s |
|
# the make to use for saved_kcp the profiler. |
|
|
KCP=kcp-sun |
|
56 |
|
|
57 |
NULLFILE = ../h/secondary_sun_magic |
LIBFILES=bsearch.o |
|
# no ranlib so use dummy |
|
|
RANLIB=true |
|
|
# use the sun ar |
|
|
AR=/usr/ccs/bin/ar qc |
|
58 |
|
|
59 |
|
# the make to use for saved_kcp the profiler. |
60 |
|
KCP=kcp-bsd |