Home Up

Subchapters:

#
SHELL=/bin/sh
FFLAGS=

#
# Here you must specify the name of the function called
# by IDL and the name of the function/procedure needed in this
# function
#
PROG_NAME = callconvram
FOBJS=$(PROG_NAME).o convram.o

SHL_LIBS= $(PROG_NAME).$(SHL_EXT)
SHL_EXT=so
F77=f77
F_LD=f77
FFLAGS=-pic -G
F_LD_FLAGS=-G
F_LD_POST= -lF77 -lm -lc

# The following is the default entry point. This section will determine 
# what system we are on, set the correct flags and call this same makefile
# again with the correct flags.

all : $(SHL_LIBS)
@echo ""
@echo "To test the call external examples, start IDL and execute one"
@echo "of the following IDL procedures: "$(PROG_NAME)

$(PROG_NAME).$(SHL_EXT) : $(FOBJS)
$(F_LD) $(F_LD_FLAGS) -o $(SHL_LIBS) $(FOBJS) \
$(FORTRAN_EXPORT) $(F_LD_POST)

 

IDL courses C. Morisset 2004 IA/UNAM V 2.2

Home Up