Previous Topic: Overview of an Example Makefile for WindowsNext Topic: Executing the User-written C Proxy Application


Overview of an Example Makefile for UNIX

The steps used to compile and link your C/C++ application are similar on the supported UNIX platforms. Differences do exist in the compiler names used as well as the names of the dependency libraries. The example makefile macros shown may require modifications to work in your environment. Constructs similar to those presented for the Windows makefile above may also be incorporated into makefiles for execution within the UNIX environments but are not presented below.

Description

Example Makefile

Compile/link macro for use with IBM AIX

cproxy: cproxy.c p900.h

xlC_r -q64 cpluscmt -DUNIX -I$(IEFH)/include cproxy.c -L$(IEFH)/lib -l pxrt.xx -o cproxy

Compile/link macro for use with Sun Solaris

cproxy: cproxy.c p900.h

CC -m64 -DUNIX -I$(IEFH)/include cproxy.c -L$(IEFH)/lib -l pxrt.xx -o cproxy

Compile/link macro for use with HP Itanium UNIX

cproxy: cproxy.c p900.h

aCC -Y -Aa +Z -Wl,+s -DD64

-DUNIX -I$(IEFH)/include cproxy.c -L$(IEFH)/lib -l pxrt.xx -o cproxy

Note: xx refers to the current release of CA Gen. For the current release number, see the Release Notes.