diff options
author | Kenneth Russel <[email protected]> | 2001-06-26 05:55:02 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2001-06-26 05:55:02 +0000 |
commit | 60fcc879a7b52bdec425ab3968313dff04006bc1 (patch) | |
tree | 2d576c4019cc00632da837f575b8eb415e89d7db | |
parent | 95c3538c8f5c6fcdf1c70bf583e07a60c2f1cb52 (diff) |
*** empty log message ***rel-2-8-0-0-prerelease-2
-rwxr-xr-x | mklibs/mkslib.solaris-cc | 61 | ||||
-rw-r--r-- | symbols.mak.solaris-sunos-58-cc-32bit | 45 |
2 files changed, 106 insertions, 0 deletions
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 ([email protected]) + +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 |