9 |
|
|
10 |
CFLAGS = -c $(DEFS) -I$(HDIR) |
CFLAGS = -c $(DEFS) -I$(HDIR) |
11 |
LDCC = $(CC) -g |
LDCC = $(CC) -g |
12 |
LIBC = -lc $(RL_LIB_SPEC) |
LIBC = -lc |
13 |
LIBS = -lm # -lpixrect -lc |
LIBS = -lm # -lpixrect -lc |
14 |
OLDDATE = "DATE" |
OLDDATE = "DATE" |
15 |
GCLIB = $(ODIR)/gcllib.a |
GCLIB = $(ODIR)/gcllib.a |
18 |
INIT_SYSTEM_LSP=init_$(SYSTEM).lsp |
INIT_SYSTEM_LSP=init_$(SYSTEM).lsp |
19 |
SPECIAL_RSYM = rsym.c |
SPECIAL_RSYM = rsym.c |
20 |
|
|
|
# If you have static GNU Readline 4.0 library, modify the following |
|
|
# Note that it is possible to configure Readline use ncurses instead termcap |
|
|
RL_PREFIX=/cdimage |
|
|
RL_LIB_SPEC=-L$(RL_PREFIX)/lib -lreadline -ltermcap |
|
|
RL_INCLUDE=-I$(RL_PREFIX)/include |
|
|
RL_OBJS=$(OD)readline.o |
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
# begin makedefs |
# begin makedefs |
22 |
|
|
23 |
# use=386-linux |
# use=386-linux |
32 |
# root for the installation, eg /usr/local |
# root for the installation, eg /usr/local |
33 |
# This would cause make install to create /usr/local/bin/gcl and |
# This would cause make install to create /usr/local/bin/gcl and |
34 |
# /usr/local/lib/gcl-2-??/* with some basic files. |
# /usr/local/lib/gcl-2-??/* with some basic files. |
35 |
prefix=/usr/local |
prefix=/fix/f/debian/mm/gcl/gcl-2.5.0/../tmp |
36 |
|
|
37 |
# where to place the info files |
# where to place the info files |
38 |
INFO_DIR=/usr/info/ |
INFO_DIR=/usr/info/ |
62 |
NOTIFY=yes |
NOTIFY=yes |
63 |
GCC=gcc |
GCC=gcc |
64 |
|
|
65 |
|
RL_OBJS= |
66 |
|
|
67 |
|
RL_LIB= |
|
|
|
68 |
|
|
69 |
GCLDIR=/fix/f/debian/mm/gcl/gcl-2.5.0 |
GCLDIR=/fix/f/debian/mm/gcl/gcl-2.5.0 |
70 |
SHELL=/bin/sh |
SHELL=/bin/sh |
81 |
|
|
82 |
LBINDIR=/usr/local/bin |
LBINDIR=/usr/local/bin |
83 |
|
|
84 |
OFLAG = -O |
OFLAG = -g |
85 |
LIBS = -lm |
#OFLAG = -O |
86 |
|
#LIBS = -lm |
87 |
|
|
88 |
ODIR_DEBUG= -O4 |
#ODIR_DEBUG= -O4 |
89 |
|
ODIR_DEBUG= -g |
90 |
|
|
91 |
# This CC string will be used for compilation of the system, |
# This CC string will be used for compilation of the system, |
92 |
# and also in the compiler::*cc* variable for later compilation of |
# and also in the compiler::*cc* variable for later compilation of |
158 |
$(OD)nfunlink.o $(OD)usig.o $(OD)usig2.o $(OD)utils.o \ |
$(OD)nfunlink.o $(OD)usig.o $(OD)usig2.o $(OD)utils.o \ |
159 |
$(OD)makefun.o $(OD)sockets.o $(OD)clxsocket.o \ |
$(OD)makefun.o $(OD)sockets.o $(OD)clxsocket.o \ |
160 |
$(OD)init_pari.o $(OD)nsocket.o $(NEW_INIT) $(MPFILES) $(SFASL) $(EXTRAS) \ |
$(OD)init_pari.o $(OD)nsocket.o $(NEW_INIT) $(MPFILES) $(SFASL) $(EXTRAS) \ |
161 |
$(RL_OBJS) |
$(addprefix $(OD),$(RL_OBJS)) |
162 |
|
|
163 |
LSPOBJS = $(LSPDIR)/defmacro.o $(LSPDIR)/evalmacros.o $(LSPDIR)/top.o \ |
LSPOBJS = $(LSPDIR)/defmacro.o $(LSPDIR)/evalmacros.o $(LSPDIR)/top.o \ |
164 |
$(LSPDIR)/module.o $(LSPDIR)/predlib.o $(LSPDIR)/setf.o \ |
$(LSPDIR)/module.o $(LSPDIR)/predlib.o $(LSPDIR)/setf.o \ |
167 |
$(LSPDIR)/mislib.o $(LSPDIR)/numlib.o $(LSPDIR)/packlib.o \ |
$(LSPDIR)/mislib.o $(LSPDIR)/numlib.o $(LSPDIR)/packlib.o \ |
168 |
$(LSPDIR)/seq.o $(LSPDIR)/seqlib.o $(LSPDIR)/trace.o \ |
$(LSPDIR)/seq.o $(LSPDIR)/seqlib.o $(LSPDIR)/trace.o \ |
169 |
$(LSPDIR)/sloop.o $(LSPDIR)/debug.o $(LSPDIR)/info.o \ |
$(LSPDIR)/sloop.o $(LSPDIR)/debug.o $(LSPDIR)/info.o \ |
170 |
$(LSPDIR)/serror.o |
$(LSPDIR)/serror.o $(addprefix $(LSPDIR)/,$(RL_OBJS)) |
171 |
|
|
172 |
CMPOBJS = $(CMPDIR)/cmpinline.o $(CMPDIR)/cmputil.o $(CMPDIR)/cmptype.o \ |
CMPOBJS = $(CMPDIR)/cmpinline.o $(CMPDIR)/cmputil.o $(CMPDIR)/cmptype.o \ |
173 |
$(CMPDIR)/cmpbind.o $(CMPDIR)/cmpblock.o $(CMPDIR)/cmpcall.o \ |
$(CMPDIR)/cmpbind.o $(CMPDIR)/cmpblock.o $(CMPDIR)/cmpcall.o \ |
180 |
|
|
181 |
SYSTEM=gcl |
SYSTEM=gcl |
182 |
|
|
183 |
|
$(LSPDIR)/auto_new.lsp: $(LSPDIR)/auto.lsp |
184 |
|
cp $< $@ |
185 |
|
[ "$(RL_OBJS)" = "" ] || \ |
186 |
|
echo "(AUTOLOAD 'init-readline '|readline|)" >>$@ |
187 |
|
|
188 |
saved_$(SYSTEM):raw_$(SYSTEM) $(RSYM) $(INIT_SYSTEM_LSP) \ |
saved_$(SYSTEM):raw_$(SYSTEM) $(RSYM) $(INIT_SYSTEM_LSP) \ |
189 |
$(CMPDIR)/cmpmain.lsp \ |
$(CMPDIR)/cmpmain.lsp \ |
190 |
$(CMPDIR)/lfun_list.lsp \ |
$(CMPDIR)/lfun_list.lsp \ |
191 |
$(CMPDIR)/cmpopt.lsp ${HDIR}/cmpinclude.h |
$(CMPDIR)/cmpopt.lsp ${HDIR}/cmpinclude.h \ |
192 |
|
$(LSPDIR)/auto_new.lsp |
193 |
# if you are wfs on rascal increment the minor version number. |
# if you are wfs on rascal increment the minor version number. |
194 |
../xbin/if-exists /usr/u9/wfs/schelter "../xbin/inc-version" |
../xbin/if-exists /usr/u9/wfs/schelter "../xbin/inc-version" |
195 |
../xbin/if-exists saved_$(SYSTEM) "rm -f saved_$(SYSTEM)" |
../xbin/if-exists saved_$(SYSTEM) "rm -f saved_$(SYSTEM)" |
256 |
|
|
257 |
|
|
258 |
clean: |
clean: |
259 |
rm -f saved_$(GCL) raw_$(GCL) *.o core a.out rsym |
rm -f saved_$(GCL) raw_$(GCL) *.o core a.out rsym $(LSPDIR)/auto_new.lsp |