• Subject: RE: TMKMAKE
  • From: "Goodbar, Loyd (AFS-Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>
  • Date: Mon, 26 Jun 2000 17:53:11 -0400

The best reference, aside from the tutorial text in the TMKMAKE
documentation, is the O'Reilly book _Managing Projects with Make_. Amazon
link:
<http://www.amazon.com/exec/obidos/ASIN/0937175900/qid=962055383/sr=1-1/104-
9123198-3720736>
I've installed TMKMAKE, but not had the chance to make use of it.

Basically, you set up how you want to compile programs, and the dependencies
between programs.

(This is not in a real makefile format)

For instance, you can define how to compile modules by specifying the whole
compile statement:
modulea: CRTRPGMOD MODULE(MYLIB/MYMODULEA) SRCFILE(MYLIB/MYSRC)
ALWNULL(*YES)
moduleb: CRTRPGMOD MODULE(MYLIB/MYMODULEB) SRCFILE(MYLIB/MYSRC)
BNDDIR(MYLIB/MYBNDDIR)
modulec: CRTCMOD...

Then you define how to create the program that uses these modules:
myprogram: CRTPGM PGM(MYLIB/MYPGM) MODULE(MODULEA MODULEB MODULEC)
ACTGRP(MYACTGRP)
depends on modulea, moduleb, modulec

Now, whenever you build your program MYPGM, you just call TMKMAKE
MAKETARG(MYPROGRAM). 
TMKMAKE "knows" that to make MYPGM, it must also ensure modules A B C are
also up to date. Since you defined MYPGM to be dependant on modules A B C,
they will be compiled if they are not up to date.

Define a "label" as an application, say "GL", and "GL" depends on GLPGMA,
GLPGMB, GLPGMC, and these programs have modules. If you want to completely
rebuild the GL application, you just issue a TMKMAKE MAKETARG(GL), and all
new and changed programs and modules are recompiled automatically.

The TMKMAKE program is not just limited to programs. You can also define
files, commands, panel groups, and any other object that you can directly
create from the command line. On the AS/400, TMKMAKE should let you execute
just about any OS400 command. You can create and populate data areas, files
(if you put the SQL statements in the make file), etc. Just given the source
files, you should be able to totally recreate the application (without data)
from a makefile.

If you're serious about using TMKMAKE, you can't go wrong by getting the
O'Reilly book above as a reference.

Loyd

-----Original Message-----
From: Adam White [mailto:adam@slic-systems.com]
Sent: Monday, June 26, 2000 3:13 PM
To: MIDRANGE-L@midrange. com
Subject: TMKMAKE


Does anybody have some examples of how to use TMKMAKE for C and RPG programs
as supplied in QUSRTOOL.
I have read the documentation, but it is as clear as mud.

Any information would be gratefully appreciated.

Thanks
Adam
adam@slic-systems.com
www.slic-systems.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.