# Makefile to define a Java example using PL/I native methods
# Windows version

NEWCLASS    = javaVars    # .java file to define class for PL/I
                           # native methods
PLI_PROGRAM = pliVars     # .pli file to define native method

#  this is what will be created
all:    $(NEWCLASS).class $(PLI_PROGRAM).dll

# Java home directory and other Java defaults
JAVA_HOME = g:\jdk1.1.8
LIBDIR       = $(JAVA_HOME)\lib

# compile options
PLI_FLAGS    = (dllinit gn dft(linkage(stdcall)) xinfo(def)

.SUFFIXES:      .pli .java .class

.java.class:
        javac $<

.pli.obj:
        pli $<  $(PLI_FLAGS)

$(PLI_PROGRAM).dll:	 $(PLI_PROGRAM).obj
       ilib /nologo /geni $(PLI_PROGRAM).def
       ilink /debug /dll $(PLI_PROGRAM).obj $(PLI_PROGRAM).exp \
$(LIBDIR)\javai.lib

