From 60fcc879a7b52bdec425ab3968313dff04006bc1 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 26 Jun 2001 05:55:02 +0000 Subject: *** empty log message *** --- mklibs/mkslib.solaris-cc | 61 +++++++++++++++++++++++++++++++++++ symbols.mak.solaris-sunos-58-cc-32bit | 45 ++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100755 mklibs/mkslib.solaris-cc create mode 100644 symbols.mak.solaris-sunos-58-cc-32bit diff --git a/mklibs/mkslib.solaris-cc b/mklibs/mkslib.solaris-cc new file mode 100755 index 0000000..539c674 --- /dev/null +++ b/mklibs/mkslib.solaris-cc @@ -0,0 +1,61 @@ +#!/bin/sh + +# Make a Solaris shared library +# goal: same tool for any machines ... +# + +# First argument is name of output library +# without dirname and suffix +# second and third are the major and minor number +# Rest of arguments are object files + +set -x + +LIBDIR=$1 +shift 1 + +LIBRARY=$1 +shift 1 + +LIBMAJOR=$1 +shift 1 + +LIBMINOR=$1 +shift 1 + +LIBBUGFIX=$1 +shift 1 + + +OBJECTS=$* + +# the following provided by Thomas Hiller (Hiller@tu-harburg.d400.de) + +VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}" + +LIBNAME=${LIBRARY}.so + +echo "Building shared object $LIBRARY.so.$VERSION and the archive library $LIBRARY.a" +rm -f ${LIBDIR}/${LIBNAME}* + +cc -G -o ${LIBDIR}/${LIBNAME}.${VERSION} ${OBJECTS} + +( cd ${LIBDIR} ; + ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} +) + +( cd ${LIBDIR} ; + ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR} +) + +( cd ${LIBDIR} ; + ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME} +) + +# Print a reminder about shared libs: +echo +echo "******Be sure to add" ${LIBDIR}" to your LD_LIBRARY_PATH variable" +echo +sleep 2 + + diff --git a/symbols.mak.solaris-sunos-58-cc-32bit b/symbols.mak.solaris-sunos-58-cc-32bit new file mode 100644 index 0000000..b9a16dd --- /dev/null +++ b/symbols.mak.solaris-sunos-58-cc-32bit @@ -0,0 +1,45 @@ +###################################################################### +# Locations that are environment specific. You will need to +# change these to reflect the location of Java and Mesa (or OpenGL) +# and CC etc. on your system +###################################################################### + +SHELL = /usr/bin/bash + +THISDIR = ${PWD} +HOME_LIB_DIR = ${THISDIR}/lib +DEST_CLASSES_DIR = ${THISDIR}/classes +UNIXTYPE = SUNOS-58 + +JDK_HOME = $(shell dirname $$(which java))/.. +JAVASHAREINC = $(JDK_HOME)/include +JAVAOSINC = $(JDK_HOME)/include/solaris + +JAR_DESTS = ${THISDIR} + +CC = cc +MKLIB = sh mklibs/mkslib.solaris-cc +MKEXP = echo +JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/png.jar" +JAVAH = $(JDK_HOME)/bin/javah +JAR = $(JDK_HOME)/bin/jar + +OGLINCDIR = /usr/X/include + +XINCDIR = /usr/X/include +XLIBDIR = /usr/X/lib + +MATHLIB = -lm + +XLIBS = -L$(XLIBDIR) -lX11 + +LIBS = $(XLIBS) $(MATHLIB) -lpthread -ldl + +INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \ + -I$(XINCDIR) -I$(OGLINCDIR) + +CFLAGS = -KPIC -xCC -D_REENTRANT -c -xO3 \ + -D_X11_ -D__BUILTIN_VA_ARG_INCR \ + -DGLU_VERSION_1_2 + +GZIP = gzip -- cgit v1.2.3