This shows (in bold face) the lines that must be added or changed in your PKG/lib/Makefile in order to copy your source files from your PKG directory to the directory for distribution to VMS.
Note that the Makefile below is $EOSR_CVS/eos/mgr/mak/Makefile, the default Makefile that all new packages get.
PKG=test PKG_HOME:=$(dir $(shell pwd)) EOSLIB=$(EOSR_CVS)/eos INSTALLIB=$(EOSLIB)/lib/$(EOS_ARCH) INSTALLINC=$(EOSLIB)/inc INCDIST=INCDIRS=$(PKG_HOME)/newinc $(PKG_HOME)/inc $(PKG_HOME)/src INCDIRS=$(PKG_HOME)/newinc $(PKG_HOME)/inc $(PKG_HOME)/src\ $(EOSLIB)/inc SRCDIRS=$(PKG_HOME)/newsrc $(PKG_HOME)/src LIB=lib$(PKG).a RANLIB=ranlib DISTDIR=$(EOSR_CVS)/eos/dist/ana DISTLNAME="eos_ana:" include flags.mak export ARFLAGS CFLAGS CCFLAGS CPPFLAGS FFLAGS INCDIRS \ LIB SRCDIRS RANLIB DISTDIR DISTLNAME INCDIST MAK_DIR=$(EOSLIB)/mgr/mak all: cd $(EOS_ARCH); rm $(LIB); $(MAKE) -f $(MAK_DIR)/pkg_lib.mak lib: all pkg_lib.mak: cp $(MAK_DIR)/$@ . flags.mak: cp $(MAK_DIR)/$@ . clean: cd $(EOS_ARCH); rm *.o *.d $(LIB) *.ibm distribute: $(MAKE) -f $(MAK_DIR)/distribute.mak install: lib distribute cp $(EOS_ARCH)/$(LIB) $(INSTALLIB) $(RANLIB) $(INSTALLIB)/$(LIB) cp $(PKG_HOME)inc/*.inc $(INSTALLINC) cp $(PKG_HOME)inc/*.h $(INSTALLINC) .DEFAULT: $(MAKE) -f $(MAK_DIR)/pkg_lib.mak $@