× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



disclaimer: I have never used this.....

In the QUSRTOOL library there is a MAKE utility.  below is a snip...

<snip>
The TMKMAKE command is the AS/400 implementation of the MAKE tool which
maintains up-to-date versions of programs consisting of multiple parts.
The TMKMAKE command reads a user-supplied description file, which
describes the rules, part dependencies and commands to be executed
for the parts being maintained.  The TMKMAKE command verifies that all
targets specified are up-to-date.  If one or more of the dependants have
been modified since the target was last updated, the commands associated
with the target rule are invoked.  A target file which is not found is
considered out-of-date.
The TMKMAKE command supports the following features:  macro definition
and substitution, include and conditional directive processing,
built-in rules definition, suffix transformation, Extended Program Model
(EPM) LIBFILE and System C/400 TXTLIB library maintenance, Integrated
Language Environment (ILE) programming model, ILE binding directories,
and recursive processing.
</snip>




----------------------------
Bryan Dietz

Aktion Associates

c400-l-bounces+bdietz=aktion.com@xxxxxxxxxxxx wrote on 02/28/2005 09:28:27
AM:

> CRTLIB SOURCELIB
> CRTSRCPF FILE(SOURCELIB/QCSRC) TEXT('This file contains all the source
> members')
> CRTSRCPF FILE(SOURCELIB/QCLSRC) TEXT('This file contains all the source
> members')
> STRSEU SRCFILE(SOURCELIB/QCLSRC) SRCMBR(BUILD) TYPE(CLLE) TEXT('Build
> program (makefile)')
>
> Type in:
>
> PGM
>
> CRTCMOD .....
> CRTCMOD .....
> .
> .
> .
> CRTPGM ....
>
> ENDPGM
>
> Now you can compile your BUILD (makefile) program:
>
> CRTBNDCL PGM(SOURCELIB/BUILD) SRCFILE(SOURCELIB/QCLSRC)
>
> And call it to build all of your C modules and the final program.
>
> CALL SOURCELIB/BUILD
>
> Note that CL program even though it looks like one, BUILD is not a script
> file, but actual compiled program that you invoke via CALL command.
> Every time you make changes to the BUILD source file you'll need to
> recompile it so the compiled program (think of it as executable) is
updated
> with changes you made to the source.
>
> Hope that helps.
>
> Elvis
>
>
>
> -----Original Message-----
> To: C programming iSeries / AS400
> Subject: Re: [C400-L] Linking,...
>
> Hi.
>
> > a) Most iSeries programmers don't use ICC. The icc program is something
> > that was created to make Unix people feel at home.  iSeries people
don't
> > work from QShell or PASE, they work from OS/400 native tools.
> I spent some time on reading more OS/400 docs. Now I'm preatty familiar
> with CL commands. However I don't understand how can I use CL commands to
> fulfill my needs. I have a project composed by cca. 30 C files and lot of
> headers. With QSHELL commands it is easy to create an Makefile. Does it
> exist something similar to be used with OS/400 Menus?
>
>
> Best regards,
> Dezo


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.