× 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.



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 ...

Follow-Ups:
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.