Compile Time Variables make life easier.
Yes - you heard it right. We can define a variable in our Rules.MK File and reference that anywhere in our project. Let's look at an example...
My Power System runs IBM i V7R5M0 but I want to create my code using V7R4M0. This new feature let me easily my global target compile release to *PRV using a global variable.
Simply edit your Rules.mk file in your project root folder. Here is an example where I am adding the TGTRLS parameter as a variable called PROJECT_TGTRLS
Root Rules.MK
Now this is defined we can reference this variable anywhere else in our project workspace. This example I am using the variable PROJECT_TGTRLS to set the TGTRLS to *PRV for this module:
And I can use the same technique for the *SRVPGM like this: