SPAWN program is C program in EBS.
How do I compile a custom C program?
Spawned programs:
Step 1: Write the code
Self-explanatory
Step 2: Compile the source
You must use the makefile under $FND_TOP/usrxit
Use: make -f $FND_TOP/usrxit/Makefile program.o
We do not support using any other makefile
Step 3: Link the program
This part is a little tricky. You need to create a custom makefile for this step.
Use $FND_TOP/lib/sample.mk as a starting point. Copy this file to the lib directory
under your applications top directory. Rename it <short name>.mk (ie fnd.mk, gl.mk etc)
Modify this file according to the directions in it. Basically you need to add a target
and build commands for your executable.
Next, use adrelink to link the executable:
adrelink force=y ranlib=y "shortname programname"
Step 4: Register the program as in the above question