#
# SAS/C lmkfile for creating an ARexx function library called
# 'rexxhs.library'
#

PREFIX= _LIB                       # prefix for library functions
ID    = "RexxHostSupport 1.0 (July 15/91)\r\n"  # ID string
FD    = rexxhs.fd                  # FD file
LIBS  = lib:lc.lib                 # libraries to link with, if any
ARLIB = rexxhs.library             # name of library

# Add object files to this list...

OBJS  = libent.o libinit.o sasglue.o rexxhs.o

#
# Create the library...
#

$(ARLIB): $(OBJS)
	blink LIBPREFIX $(PREFIX) LIBID $(ID) LIBFD $(FD) \
          TO $(ARLIB) FROM $(OBJS) LIB $(LIBS)
    copy $(ARLIB) libs:

#
# Customize arexxlib.c to add your functions
#

rexxhs.o: rexxhs.c
    lc -ml -v -d_USEOLDEXEC_ rexxhs.c

sasglue.o: sasglue.a
    asm -u sasglue.a

#
# Copy these files from the 'source' directory in your SAS volume
#

libinit.o: libinit.c
    lc -ml -v -d_USEOLDEXEC_ libinit.c

libent.o: libent.a
    asm -u -iinclude: libent.a

