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

« back to all changes in this revision

Viewing changes to elisp/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
 
 
2
 
 
3
# begin makedefs
 
4
 
 
5
# use=386-linux
 
6
 
 
7
# for main link of raw_gcl
 
8
LIBS= -lm -lreadline -lncurses  -Wl,-static -lbfd -liberty
 
9
 
 
10
#The multi precision library stuff
 
11
MPFILES=$(MPDIR)/@MPI_FILE@ $(MPDIR)/libmport.a
 
12
 
 
13
 
 
14
# root for the installation, eg /usr/local
 
15
# This would cause make install to create /usr/local/bin/gcl and
 
16
# /usr/local/lib/gcl-2-??/* with some basic files.
 
17
prefix=/usr
 
18
 
 
19
# where to place the info files
 
20
INFO_DIR=/usr/info/
 
21
 
 
22
# where to put emacs lisp files.
 
23
EMACS_SITE_LISP=/usr/local/share/emacs/20.7/site-lisp
 
24
 
 
25
# the default.el file
 
26
EMACS_DEFAULT_EL=/usr/local/share/emacs/20.7/site-lisp/default.el
 
27
 
 
28
# numerous TCL/TK variables culled from the tkConfig.sh and tclConfig.sh
 
29
# if these are found.
 
30
TK_CONFIG_PREFIX=/usr/lib
 
31
TK_LIBRARY=/usr/lib/tk8.2
 
32
TCL_LIBRARY=/usr/lib/tcl8.2
 
33
TK_XINCLUDES=-I/usr/X11R6/include
 
34
TK_INCLUDE=-I/usr/lib/../include
 
35
TCL_INCLUDE=-I/usr/lib/../include
 
36
TK_LIB_SPEC=-L/usr/lib -ltk8.2
 
37
TK_BUILD_LIB_SPEC=-L/usr/lib -ltk8.2
 
38
TK_XLIBSW=-L/usr/X11R6/lib -lX11
 
39
TK_XINCLUDES=-I/usr/X11R6/include
 
40
TCL_LIB_SPEC=-L/usr/lib -ltcl8.2${TCL_DBGX}
 
41
TCL_DL_LIBS=-ldl
 
42
TCL_LIBS=-ldl  -lm
 
43
 
 
44
NOTIFY=yes
 
45
GCC=gcc
 
46
 
 
47
RL_OBJS=readline.o
 
48
 
 
49
RL_LIB=lsp/readline.o
 
50
 
 
51
GCLDIR=/fix/f/debian/mm/gcl/gcl-2.5.0.cvs
 
52
SHELL=/bin/sh
 
53
MACHINE=386-linux
 
54
 
 
55
# notes for redhat 6.0
 
56
#  the configure should select the compiler GCC=/usr/bin/i386-glibc20-linux-gcc
 
57
#  However for the gcl-tk directory, you must use plain 'gcc' since
 
58
#  that must link with the tcl tk libs which have been compiled with it.
 
59
#  so after configure change to GCC=gcc in the gcl-tk/makefile
 
60
 
 
61
 
 
62
# Machine dependent makefile definitions for intel 386,486 running linux
 
63
 
 
64
LBINDIR=/usr/local/bin
 
65
 
 
66
#OFLAG  =  -g 
 
67
OFLAG   =  -O 
 
68
#LIBS   = -lm 
 
69
 
 
70
ODIR_DEBUG= -O4 
 
71
#ODIR_DEBUG= -g
 
72
 
 
73
# This CC string will be used for compilation of the system,
 
74
# and also in the compiler::*cc* variable for later compilation of
 
75
# lisp files.
 
76
# (the -pipe is just since our file system is slow..)
 
77
CC = ${GCC} -pipe -fwritable-strings  -DVOL=volatile -I$(GCLDIR)/o -fsigned-char
 
78
 
 
79
# under redhat 6.1 and slackware 7.0 we needed to have this
 
80
# link be static, but should be ok with the fix to unixport/rsym_elf.c
 
81
LDCC=${CC} -static
 
82
LDCC=${CC}
 
83
 
 
84
# note for linuxaout on an elf machine add -b i486-linuxaout 
 
85
# CC = gcc -pipe -fwritable-strings  -DVOL=volatile -I$(GCLDIR)/o -fsigned-char -b i486-linuxaout 
 
86
 
 
87
# Enable the fastloading mechanism which does not use ld -A
 
88
# requires c/rel_.. machine dependent code.
 
89
 
 
90
RSYM    = rsym
 
91
SFASL   = $(ODIR)/sfasl.o
 
92
 
 
93
 
 
94
#MPFILES= $(MPDIR)/mpi-386d.o   $(MPDIR)/libmport.a
 
95
 
 
96
 
 
97
# When using SFASL it is good to have (si::build-symbol-table)
 
98
INITFORM=(si::build-symbol-table)
 
99
 
 
100
# Use symbolic links
 
101
SYMB=-s
 
102
 
 
103
LIBFILES=bsearch.o
 
104
 
 
105
# the  make to use for saved_kcp the profiler.
 
106
KCP=kcp-bsd
 
107
 
 
108
MPFILES=${GMP_DIR}libgmp.a
 
109
 
 
110
 
 
111
# end makedefs
 
112
 
 
113
 
 
114
install:
 
115
        mkdir -p $(DESTDIR)$(EMACS_SITE_LISP)
 
116
        cp *.el $(DESTDIR)$(EMACS_SITE_LISP)
 
117
        if [ "$(EMACS_DEFAULT_EL)" != "" ] ; then \
 
118
        if test -f "$(DESTDIR)${EMACS_DEFAULT_EL}" ; then \
 
119
        cat $(DESTDIR)${EMACS_DEFAULT_EL} | sed -e '/BEGIN gcl/,/END gcl/d' > xxx ; \
 
120
        mv $(DESTDIR)${EMACS_DEFAULT_EL} $(DESTDIR)${EMACS_DEFAULT_EL}.prev ; \
 
121
          rm -f  $(DESTDIR)${EMACS_DEFAULT_EL}c ; \
 
122
          cat add-default.el >> xxx ; cp  xxx $(DESTDIR)${EMACS_DEFAULT_EL} ; \
 
123
          rm -f xxx ; else \
 
124
        cp  add-default.el $(DESTDIR)${EMACS_DEFAULT_EL} ; fi ; \
 
125
        chmod a+r $(DESTDIR)${EMACS_DEFAULT_EL} ; fi
 
126
 
 
127