A working Makefile for paoloa apps

Sorry about the bogus Makefile, I don't have any way to actually display
any VisAD stuff (I've got to wait until Java3D runs on HP-UX)

Here's a better Makefile that Bill successfully used to build the Goes*
libraries and run GoesRetrieval.

You may need to change some of the paths to point to locations on your
system:
##############################################################################
# makefile for visad/paoloa/GoesRetrieval

#
# these Fortran functions compile correctly under sparc Solaris
# 2.5.1
#
# if you port them you may need to change 'recl=352' in so_read_1.f
# and 'recl=76' in re_read_1.f, which are in bytes on Solaris (but
# were in words on Irix 5 for VisAD 1.1)
#
FORTRANS = change_profil.o ev_diff_prof.o goesrte_2.o so_read_1.o \
        dbdtgx_1.o get_profil.o re_read_1.o

JAVADIR=/opt/java

LIB1 = /opt/SUNWspro/lib
LIB2 = /opt/SUNWspro/SC3.0.1/lib
LIBS = -L${LIB1} -R${LIB1} -L${LIB2} -R${LIB2}

default: GoesRetrieval.class libGoesRetrieval.so GoesCollaboration.class 
libGoesCollaboration.so

libGoesRetrieval.so: GoesRetrievalImp.o $(FORTRANS)
        ld -G -z defs -o libGoesRetrieval.so \
                GoesRetrievalImp.o $(FORTRANS) \
                $(LIBS) -lM77 -lF77 -lm -lsunmath -lc

GoesRetrievalImp.o: visad_paoloa_GoesRetrieval.h

visad_paoloa_GoesRetrieval.h: GoesRetrieval.class
        javah -jni visad.paoloa.GoesRetrieval

GoesRetrieval.class: GoesRetrieval.java
        javac GoesRetrieval.java

libGoesCollaboration.so: GoesCollaborationImp.o $(FORTRANS)
        ld -G -z defs -o libGoesCollaboration.so \
                GoesCollaborationImp.o $(FORTRANS) \
                $(LIBS) -lM77 -lF77 -lm -lsunmath -lc

GoesCollaborationImp.o: visad_paoloa_GoesCollaboration.h

visad_paoloa_GoesCollaboration.h: GoesCollaboration.class
        javah -jni visad.paoloa.GoesCollaboration

GoesCollaboration.class: GoesCollaboration.java
        javac GoesCollaboration.java

#
# you may need to change the include directories in these -I flags
#
.c.o:
        $(CC) -I${JAVADIR}/include -I${JAVADIR}/include/solaris -Kpic -c $<

.f.o:
        $(F77) -Kpic -c $<


TAR_NO_DATA_FILES = \
        visad/paoloa/README.paoloa                      \
        visad/paoloa/DATE                               \
        visad/paoloa/Makefile                           \
        visad/paoloa/*.java                             \
        visad/paoloa/*.f                                \
        visad/paoloa/*.c                                \
        visad/paoloa/*.h

tar_no_data:
        date > DATE ; \
        cd ../.. ; \
        tar -cvf visad.paoloa.no_data.tar $(TAR_NO_DATA_FILES) ; \
        compress visad.paoloa.no_data.tar ; \
        mv visad.paoloa.no_data.tar.Z visad

jar_no_data:
        date > DATE ; \
        cd ../.. ; \
        jar cvf visad.paoloa.no_data.jar $(TAR_NO_DATA_FILES) ; \
        mv visad.paoloa.no_data.jar visad

TAR_FILES = \
        visad/paoloa/README.paoloa                      \
        visad/paoloa/DATE                               \
        visad/paoloa/Makefile                           \
        visad/paoloa/goesrtcf                           \
        visad/paoloa/data_obs_1.dat                     \
        visad/paoloa/data_sou_1.dat                     \
        visad/paoloa/*.java                             \
        visad/paoloa/*.f                                \
        visad/paoloa/*.c                                \
        visad/paoloa/*.h

tar:
        date > DATE ; \
        cd ../.. ; \
        tar -cvf visad.paoloa.tar $(TAR_FILES) ; \
        compress visad.paoloa.tar ; \
        mv visad.paoloa.tar.Z visad

jar:
        date > DATE ; \
        cd ../.. ; \
        jar cvf visad.paoloa.jar $(TAR_FILES) ; \
        mv visad.paoloa.jar visad

  • 1998 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: