Skip to content

Commit

Permalink
Merge pull request #34 from IBM/support-pgm.clle
Browse files Browse the repository at this point in the history
Support PGM.CLLE, include DBGVIEW for bnd rpg
  • Loading branch information
edmundreinhardt authored Sep 30, 2021
2 parents f2b2259 + 67f7097 commit 68f87e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mk/def_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ WSCST_AUT := $(AUT)

# Creation command parameters with variables (the ones listed at the top) for the most common ones.
CRTCLMODFLAGS = AUT($(AUT)) DBGVIEW($(DBGVIEW)) OPTION($(OPTION)) TEXT('$(TEXT)') TGTRLS($(TGTRLS))
CRTBNDCLFLAGS = AUT($(AUT)) DBGVIEW($(DBGVIEW)) OPTION($(OPTION)) TEXT('$(TEXT)') TGTRLS($(TGTRLS))
CRTCMDFLAGS = PGM($(PGM)) VLDCKR($(VLDCKR)) PMTFILE($(PMTFILE)) HLPPNLGRP($(HLPPNLGRP)) HLPID($(HLPID)) AUT($(AUT)) TEXT('$(TEXT)')
CRTCMODFLAGS = TERASPACE($(TERASPACE)) STGMDL($(STGMDL)) OUTPUT(*PRINT) OPTION($(OPTION)) DBGVIEW($(DBGVIEW)) \
SYSIFCOPT($(SYSIFCOPT)) AUT($(AUT)) TEXT('$(TEXT)') TGTCCSID($(TGTCCSID)) TGTRLS($(TGTRLS))
Expand All @@ -224,7 +225,7 @@ CRTSQLRPGIFLAGS = COMMIT($(COMMIT)) OBJTYPE($(OBJTYPE)) OPTION($(OPTION)) OUTPUT
COMPILEOPT('TGTCCSID($(TGTCCSID))')
CRTSRVPGMFLAGS = ACTGRP($(ACTGRP)) TEXT(''$(TEXT)'') TGTRLS($(TGTRLS)) AUT($(AUT)) DETAIL($(DETAIL)) STGMDL($(STGMDL))
CRTWSCSTFLAGS = AUT($(AUT)) TEXT(''$(TEXT)'')
CRTBNDRPGFLAGS:=TGTCCSID($(TGTCCSID)) OPTION($(OPTION)) TEXT('$(TEXT)')
CRTBNDRPGFLAGS:=TGTCCSID($(TGTCCSID)) OPTION($(OPTION)) TEXT('$(TEXT)') DBGVIEW($(DBGVIEW))
CRTBNDCFLAGS:=TGTCCSID($(TGTCCSID)) OPTION($(OPTION)) TEXT('$(TEXT)')

# Extra command string for adhoc addition of extra parameters to a creation command.
Expand Down Expand Up @@ -687,6 +688,14 @@ programTGTRLS = $(strip \
$(MK)/extractAndLaunch "$(JOBLOGFILE)" "$<" $(OBJLIB) $(basename $(@F)) >> $(LOGFILE) 2>&1 || true; \
$(POSTCLEANUP)

%.PGM: $$(call genDep,$$@,$$*,PGM.CLLE)
$(eval d = $($@_d))
$(call echo_cmd,"=== Create ILE CL Program [$(notdir $*)]")
$(eval crtcmd := CRTBNDCL srcstmf('$<') PGM($(OBJLIB)/$(basename $(@F))) $(CRTCLMODFLAGS))
@$(PRESETUP); \
launch "$(JOBLOGFILE)" "$(crtcmd)" >> $(LOGFILE) 2>&1 ; $(EVFEVENT_DOWNLOAD); \
$(POSTCLEANUP)

%.PGM: %.MODULE
$(eval d = $($@_d))
$(call echo_cmd,"=== Creating program [$*] from modules [$(basename $(filter %.MODULE,$(notdir $^)))] and service programs [$(basename $(filter %.SRVPGM,$(notdir $^$|)))]")
Expand Down

0 comments on commit 68f87e1

Please sign in to comment.