Re: R-alpha: R Version 0.10

Luke Tierney (luke@stat.umn.edu)
Wed, 28 Aug 1996 06:24:54 -0500 (CDT)


From: Luke Tierney <luke@stat.umn.edu>
Message-Id: <9608281124.AA19088@nokomis.stat.umn.edu>
Subject: Re: R-alpha: R Version 0.10
To: ihaka@stat.auckland.ac.nz (Ross Ihaka)
Date: Wed, 28 Aug 1996 06:24:54 -0500 (CDT)
In-Reply-To: <199608270512.RAA01686@stat.auckland.ac.nz> from "Ross Ihaka" at Aug 27, 96 05:12:03 pm

In addition to adding the lib directory as Jim Lindsey mentioned, I
also needed to make a few more small changes to compule on HPUX. Here
is a shar file with the three changed files -- unpack in $RHOME.  The
one change that may affect other sysems is to src/unix/Makefile --
locating the X11 includes via $(X11BASE)/include may not work in other
systems either.

luke

# This is a shell archive.  Remove anything before this line,
# then unpack it by saving it in a file and typing "sh file".
#
# Wrapped by Luke Tierney <luke@nokomis> on Wed Aug 28 06:19:48 1996
#
# This archive contains:
#	src/Systems/HP		src/compat/HP/Makefile	
#	src/unix/Makefile	
#

LANG=""; export LANG
PATH=/bin:/usr/bin:$PATH; export PATH

echo x - src/Systems/HP
cat >src/Systems/HP <<'@EOF'
# Hewlett-Packard Unix Machines using X11R5
# This worked on on desire.stat.cmu.edu (thanks Mike!)
# Note the -Dno_f77_underscore

# X11 Base Directory
# Does not seem to apply.  Unbelieveably weird!
X11BASE= /usr/include/X11R5

# C Compiler and Options
CC= gcc
CFLAGS= -g -I../include

# Fortran Compiler and Options (-E for Dynamic loading)
F77= f77
FFLAGS= -O 

# Yacc (Note: Bison does not work, get byacc).
YACC=yacc

# Command to Create Libraries from Object Files
MKLIB= ../tools/library.bsd

# Create an Executable from Objects and Libraries (-E for Dynamic loading)
LD= f77 -O -Wl,-E

# Libraries to Load Against
LIBS= -lm ../lib/libHPcompat.a /usr/lib/X11R5/libX11.a -ldld
@EOF

chmod 644 src/Systems/HP

echo x - src/compat/HP/Makefile
cat >src/compat/HP/Makefile <<'@EOF'
CFLAGS=-g -I. -Aa

OBJS=dlfcn.o vsystem.o

LIB= ../../lib/libHPcompat.a

$(LIB): ${OBJS}
	ar cru ${LIB} ${OBJS}
	cp dlfcn.h ../../include

clean:
	rm -f *.o
@EOF

chmod 644 src/compat/HP/Makefile

echo x - src/unix/Makefile
cat >src/unix/Makefile <<'@EOF'
# Hewlett-Packard Unix Machines using X11R5
# This worked on on desire.stat.cmu.edu (thanks Mike!)
# Note the -Dno_f77_underscore

# X11 Base Directory
# Does not seem to apply.  Unbelieveably weird!
X11BASE= /usr/include/X11R5

# C Compiler and Options
CC= gcc
CFLAGS= -g -I../include

# Fortran Compiler and Options (-E for Dynamic loading)
F77= f77
FFLAGS= -O 

# Yacc (Note: Bison does not work, get byacc).
YACC=yacc

# Command to Create Libraries from Object Files
MKLIB= ../tools/library.bsd

# Create an Executable from Objects and Libraries (-E for Dynamic loading)
LD= f77 -O -Wl,-E

# Libraries to Load Against
LIBS= -lm ../lib/libHPcompat.a /usr/lib/X11R5/libX11.a -ldld

OBJ= \
	dataentry.o \
	devX11.o \
	devPS.o \
	rotated.o \
	system.o

LIB=		../lib/libunix.a

$(LIB):		$(OBJ)
		$(MKLIB) $(LIB) $(OBJ)

dataentry.o:	dataentry.h dataentry.c ../include/Defn.h
		$(CC) -c $(CFLAGS) -I$(X11BASE) dataentry.c

rotated.o:	rotated.c rotated.h
		$(CC) -c $(CFLAGS) -I$(X11BASE) rotated.c

devX11.o:	devX11.c ../include/Graphics.h
		$(CC) -c $(CFLAGS) -I$(X11BASE) devX11.c


devPS.o:	devPS.c ../include/Graphics.h
		$(CC) -c $(CFLAGS) -I$(X11BASE) devPS.c

clean:
		@echo cleaning in unix
		@-rm -f *.o *.a

realclean:        
		@echo cleaning in unix
		@-rm -f *.o *.a Makefile
@EOF

chmod 644 src/unix/Makefile

exit 0

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-