-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
38 lines (27 loc) · 1.29 KB
/
makefile
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
33
34
35
36
37
OBJ_LIB = ANGO1
SRC_LIB = ANGO1
QOBJ_LIB = /QSYS.LIB/$(OBJ_LIB).LIB
QSRC_LIB = /QSYS.LIB/$(SRC_LIB).LIB
#------------------------------------------------------------------------------
# the first rule is the default rule
all: DSPFs PGMs
@echo "*** make $@ finished ***"
pre-build:
system -i "ADDLIBLE $(OBJ_LIB)"
DSPFs: $(QOBJ_LIB)/DSPDA1FM.FILE
@echo "*** make $@ finished ***"
PGMs: $(QOBJ_LIB)/DSPDA1.PGM
@echo "*** make $@ finished ***"
#------------------------------------------------------------------------------
# explicit rules
#------------------------------------------------------------------------------
# implicit recipes to create objects
$(QOBJ_LIB)/%.FILE: ./QDSPSRC/%.DSPF
system -i "CPYFRMSTMF FROMSTMF('./$<') TOMBR('/QSYS.LIB/$(SRC_LIB).LIB/QDSPSRC.FILE/$*.MBR') MBROPT(*REPLACE)"
system -i "CRTDSPF FILE($(OBJ_LIB)/$*) SRCFILE($(SRC_LIB)/QDSPSRC) SRCMBR(*FILE)"
$(QOBJ_LIB)/%.PGM: ./QRPGLESRC/%.RPGLE
system -i "CRTBNDRPG PGM($(OBJ_LIB)/$*) SRCSTMF('./$<') DBGVIEW(*ALL) REPLACE(*YES)"
$(QOBJ_LIB)/%.PGM: ./QCLLESRC/%.CLLE
system -i "CRTBNDCL PGM($(OBJ_LIB)/$*) SRCSTMF('./$<') DBGVIEW(*ALL) REPLACE(*YES)"
$(QOBJ_LIB)/%.PGM: ./QRPGLESRC/%.SQLRPGLE
system -i "CRTSQLRPGI OBJ($(OBJ_LIB)/$*) SRCSTMF('./$<') COMMIT(*NONE) OBJTYPE(*PGM) DBGVIEW(*LIST) REPLACE(*YES)"