Re: help: can not compile paoloa apps

Try this Makefile ... I got things to build on two different Solaris boxes
but I can't display anything, so I'm not *positive* it worked.

# 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

FLIBDIR = /opt/SUNWspro/lib
JAVADIR=/opt/java

LIBS = -L${FLIBDIR} -R${FLIBDIR}

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

libGoesRetrieval.so: GoesRetrievalImp.o $(FORTRANS)
        f77 -G GoesRetrievalImp.o $(FORTRANS) $(LIBS) -o libGoesRetrieval.so

GoesRetrieval.class: GoesRetrieval.java
        javac GoesRetrieval.java

libGoesCollaboration.so: GoesCollaborationImp.o $(FORTRANS)
        f77 -G GoesCollaborationImp.o $(FORTRANS) $(LIBS) -o 
libGoesCollaboration.so

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: