|
From: EXT-Smith, E. M <eri...@bo...> - 2003-10-17 13:35:03
|
Leif,
(I tried sending this to you directly, but SF rejected it. Don't know =
why)
As I promissed, here is the Makefile I used to get the wrapper compiling =
and loading the libwrapper.sl file under HP-UX 11.0.
We used the following versions of software:
java - 1.4.1_05
gcc - 3.2.3
HP-UX - HP-UX B.11.00
We still have a few issues, but they all appear to be in our code or the =
Java 1.4.1 VM.
Sincerely
Eric M. Smith
InfoStructure Systems
Boeing Chairman's Innovation Initiative
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
Makefile.hpux
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
JNI_HEADERS =3D $(JAVA_HOME)/include
DEFS =3D -I$(JNI_HEADERS) -I$(JNI_HEADERS)/hp-ux
DEFVALS =3D -DHPUX -D_HPUX -D_POSIX_C_SOURCE=3D199506L =
-D_XOPEN_SOURCE_EXTENDED
OPTS =3D -ansi -fPIC
COMPILE =3D gcc -c $(DEFVALS) $(OPTS) $(DEFS)
COMPILE2 =3D cc -c $(DEFVALS) $(DEFS)
COMPILE_LINK =3D gcc $(DEFVALS) $(OPTS) $(DEFS)
LINK =3D ld
realpath_SOURCE =3D realpath.c
wrapper_SOURCE =3D wrapper.c wrapper_unix.c property.c logger.c
wrapper_OBJECTS =3D wrapper.o wrapper_unix.o property.o logger.o
libwrapper_sl_SOURCE =3D wrapperjni_unix.c wrapperjni.c
libwrapper_sl_OBJECTS =3D wrapperjni_unix.o wrapperjni.o
BIN =3D ../../bin
LIB =3D ../../lib
all: init realpath wrapper libwrapper.sl
clean:
rm -f *.o
cleanall: clean
rm -rf *~ .deps
rm -f $(BIN)/realpath $(BIN)/wrapper $(LIB)/libwrapper.sl
init:
if test ! -d .deps; then mkdir .deps; fi
realpath: $(realpath_SOURCE)
$(COMPILE_LINK) $(realpath_SOURCE) -o $(BIN)/realpath
wrapper: $(wrapper_SOURCE)
$(COMPILE_LINK) $(wrapper_SOURCE) -lm -o $(BIN)/wrapper
libwrapper.sl: $(libwrapper_so_OBJECTS)
${COMPILE} $(libwrapper_sl_SOURCE)
${LINK} $(libwrapper_sl_OBJECTS) -b -o $(LIB)/libwrapper.sl
%.o: %.c
${COMPILE} ${OPTS} ${DEFS} $<
|