🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #21248

Re: slrn problem, sort of.

#21248
From: John E. Davis
Date: Sat, 04 May 1996 00:00
99 lines
4139 bytes
On 2 May 1996 21:30:02 -0700, E. <fnargle@primenet.com>
wrote:
 : Well, slrn needs the slang lib, right?  So I grab slang at the same
 : time that I grab slrn 0.8.8, and I go to compile.  Well, in the slang
 : README.unx, it says that in src/mkfiles, there will be a makefile.elf, for
 : us Linux ELF people.  There's not.  I tried to just make it anyway, and it
 : failed.  John?  Is this an oversight, or did I miss something?

The makefiles in src/mkfiles are unsupported.  I have included makefile.elf
below.  Also look at the makefile patch on "ftp://space.mit.edu/pub/davis/".
The problem with this patch is that it fails on some non-GNU makes.  As a
result, I cannot include it in the main slang distribution as it is.  

# S-Lang Makefile for Linux ELF        -*- sh_mode -*-

#----------------------------------------------------------------------------
# Linux ELF shared library
# 1: `make clean` to remove old .o files
# 2: `make linux-so`
# 
# In the next `M' and `m' refer to the major and minor versions, respectively
# 1: cp libslang.so.M.m /usr/local/lib
# 2: cd /usr/local/lib
# 3: ln -sf libslang.so.M.m  libslang.so.M
# 4: ln -sf libslang.so.M    libslang.so
#
# logon as root user and, if needed, add /usr/local/lib to /etc/ld.so.conf
# `lddconf -v` to make sure that the library is included
#
# you can now (once only) relink your binaries, future slang upgrades should
# be transparent
# My thanks to Mark Olesen <olesen@weber.me.QueensU.CA>.
#----------------------------------------------------------------------------
CC = gcc -O2 -fno-strength-reduce -Wall -fPIC -fstrict-prototypes
MAJOR_VER = 0
MINOR_VER = 99.30
LIBSO_MAJOR = libslang.so.$(MAJOR_VER)
LIBSO = $(LIBSO_MAJOR).$(MINOR_VER)
 
CFLAGS1 = -Dunix -DFLOAT_TYPE                # -DNO_STDLIB_H
CFLAGS2 = $(CFLAGS1) -DHAS_MEMSET -DHAS_MEMCPY #-DHAS_MEMCMP #-DHAS_MEMCHR
ARCMD = ar cr				# Most Unix
LIBSLANG = libslang.a			# Most Unix

#-----------------------------------------------------------------------------
# Nothing below here should require changing
#-----------------------------------------------------------------------------
RANLIB = ranlib
CFLAGS = $(CLFAGS1) $(CFLAGS2) $(USETERMCAP)

OBJS = slang.o slparse.o slmath.o slfile.o slstd.o slarray.o slregexp.o \
       slunix.o slmatrix.o slutty.o slkeymap.o slrline.o slerr.o sltoken.o\
       slmemcpy.o slmemcmp.o slmemset.o slmemchr.o slxstrng.o slgetkey.o\
       sldisply.o slsmg.o slsearch.o slcmd.o slmalloc.o slclass.o slmisc.o\
       sltermin.o slprepr.o sltypes.o

EXEC = calc

$(LIBSLANG): $(OBJS)
	rm -f $(LIBSLANG)
	$(ARCMD) $(LIBSLANG) $(OBJS)
	@echo
	@echo Ignore any complaint about a missing ranlib from the next command.
	@echo
	$(RANLIB_PREFIX) $(RANLIB) $(LIBSLANG)

linux-so: $(LIBSO)

$(LIBSO): $(OBJS)
	gcc -shared -Wl,-soname,$(LIBSO_MAJOR) -o $(LIBSO) $(OBJS)


calc: calc.o $(LIBSLANG)
	$(CC) $(CFLAGS) calc.o -L. $(LIBSLANG) -lm -o $(EXEC)

worm.o: worm.c
	$(CC) -c $(CFLAGS) -DSLANG worm.c 

worm: worm.o $(LIBSLANG)
	$(CC) $(CFLAGS)  worm.o -o worm -L. -lslang $(LIBTERMCAP)

untic.o: untic.c sltermin.c
	$(CC) -c $(CFLAGS) -DSLANG untic.c
	
untic: untic.o slerr.o sltoken.o
	$(CC) untic.o slerr.o sltoken.o -o untic

clean:
	/bin/rm -f *.o *.a *~ worm calc untic out out.* typescript


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Technical Details
Message-ID: <slrn4on75j.4ju.davis@wiwaxia.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn4oj2t5.8aj.fnargle@usr5.primenet.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4on75j.4ju.davis@wiwaxia.mit.edu>
Subject: Re: slrn problem, sort of.
Date: Sat, 04 May 1996 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn4oj2t5.8aj.fnargle@usr5.primenet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 152990213
Organization: Center for Space Research
Reply-to: davis@space.mit.edu
Newsgroups: news.software.readers