Equivalent of a Application MAKE file on AS400

0 pts.
Tags:
AS/400
Database
Development
I am trying to port a C App from windows to AS400 as well. I used FTP to get the Code and App specific header files. But when it comes to compiling the code I have road blocks as functions defined in a C program is used in another C program and its all dependent on each other and their is no entry point. The original App uses a MAKE file which tells the compiler the order of compilation. Can you please tell me of an equivalent of a make file on AS400 and how to go about creating it, or any other way to get the code compiled the way it is now.
ASKED: August 18, 2005  5:48 PM
UPDATED: November 1, 2009  10:37 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

This might be of some help. It is one of the make files for a combined language (RPG and C) for an application by Giuseppe Costagliola. Maybe it will be of some help.

SAY “========================================”
SAY ‘Initialise fax decoder tables’
SAY “========================================”

/* source files directory */
SRCDIR = ‘/pdf/libtiff-3.7.2/’

“CD /”
“CD DIR(&SRCDIR)”
“CHGJOB CCSID(037)”

SAY ‘Creating program mkg3states …’
SRCMOD = SRCDIR || ‘mkg3states.c’
‘CRTBNDC PGM(QTEMP/mkg3states) SRCSTMF(&SRCMOD) ‘,
‘OUTPUT(*PRINT) ‘,
‘OPTION(*XREF *AGR) ‘,
‘SYSIFCOPT(*IFSIO) DBGVIEW(*ALL) TGTCCSID(37)’
SAY ” result->” RC

SAY ‘Running mkgstates …’
SRCMOD = SRCDIR || ‘tif_fax3sm.c’
‘DEL &SRCMOD’
“CALL QTEMP/mkg3states (‘-c’ ‘const’ ‘tif_fax3sm.e’)”

SAY ‘Converting tif_fax3sm.c …’
SRCEBC = SRCDIR || ‘tif_fax3sm.e’
‘CPY OBJ(&SRCEBC) TOOBJ(&SRCMOD) ‘,
‘ FROMCCSID(037) TOCCSID(850) DTAFMT(*TEXT)’
‘DEL OBJLNK(&SRCEBC)’

SAY ” ”
SAY ” ”
SAY “Compile finished. Please check error(s) before continue.”

===================================================

If the app <i>needs</i> a makefile utility in order to compile properly, it probably isn’t appropriate for i5/OS. However, it might be easily good enough as well as the best option available to you.

If you don’t already have the capability, then install it. The capability is available by following the instructions to locate and install product 5799-PTL through <a href=”http://www-03.ibm.com/servers/enable/site/porting/tools/”>Porting Central</a>.

You might want to make sure you don’t already have it.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following