Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

11.7.1 Creating a Makefile

A makefile is required for remote build on a server. You can use the makefile generation function to generate a makefile required for build on a server.

Create one makefile for each COBOL project, and two makefiles, one for executable files and one for libraries, for each CORBA server project. However, for a CORBA server project that does not have a COBOL source file specifying the main program, create only a makefile for libraries.

Server file name

Local PC file name

For an executable file

Makefile

Makefile

For a shared library or dynamic link library

lib/Makefile(*)

Makefile_lib

*: Relative path from server directory

Target name

Displays the name of the executable file or dynamic link library (shared library) that becomes the makefile target.

For a CORBA server project, an executable file name and library name are displayed. However, if the project does not have a COBOL source file specifying the main program, only a library name is displayed.

Server system

Target type

Target name

Solaris system

Executable file

Target_name

Shared library

libTarget_name.so

Compile option

Displays the compile options used in the makefile during COBOL source compilation.

The target for a CORBA server project must not have the dynamic program structure. For this reason, do not specify the DLOAD compile option.

Link option

Displays the link options used in the makefile during COBOL source linking.

You can change link options specific to the OS on the server by selecting the "Linker Options2" tab in the "Option setting" dialog box.

For details on the link options on the server, refer to the "NetCOBOL User's Guide" on the server.

Option

Description

Linkage mode

Specifies the linkage mode.
For a CORBA server project, the linkage mode is dynamic linkage.

Dynamic linkage"-dy"

Creates COBOL applications in dynamic linkage mode.

Static linkage"-dn"

Creates COBOL applications in static linkage mode.

Use screen form descriptor

For a CORBA server project, this option is disabled.

Uses screen handling module

For a CORBA server project, this option is disabled.

Use C-ISAM

Specifies that a program using C-ISAM be linked.
This option is not selected by default.

Program invoked from C

For a CORBA server project, this option is disabled.

Use C Runtime Library

For a CORBA server project, this option is disabled.

Output debugging information

For a CORBA server project, this option is disabled.

Link Option"-Wl"

Specifies the link option used by the ld command.