-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·32 lines (23 loc) · 818 Bytes
/
Copy pathmakefile
File metadata and controls
executable file
·32 lines (23 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
NAME=Christmas Tree
BIN_LIB=TREE
DBGVIEW=*SOURCE
TGTRLS=V7R1M0
SHELL=/QOpenSys/usr/bin/qsh
#----------
all: $(BIN_LIB).lib tree.rpgle
@echo "Built all"
tree.rpgle: treefm.dspf
#----------
%.rpgle:
liblist -a $(BIN_LIB);\
system "CRTBNDRPG PGM($(BIN_LIB)/$*) SRCSTMF('$*.rpgle') TEXT('$(NAME)') REPLACE(*YES) DBGVIEW($(DBGVIEW)) TGTRLS($(TGTRLS))"
%.dspf:
system "CPYFRMSTMF FROMSTMF('$*.dspf') TOMBR('/QSYS.lib/$(BIN_LIB).lib/QSOURCE.file/$*.mbr') MBROPT(*REPLACE)"
system "CRTDSPF FILE($(BIN_LIB)/$*) SRCFILE($(BIN_LIB)/QSOURCE) SRCMBR($*) TEXT('$(NAME)')"
%.lib:
-system -qi "CRTLIB LIB($(BIN_LIB)) TEXT('$(NAME)')"
-system -qi "CRTSRCPF FILE($(BIN_LIB)/QSOURCE) MBR($*) RCDLEN(112)"
clean:
system "CLRLIB LIB($(BIN_LIB))"
erase:
-system -qi "DLTLIB LIB($(BIN_LIB))"