Compiling the switch-load file on HP9000 Series 800 HP-UX

Compile sybasexa.c using the makefile sybasexa.mk.hp800, which is located in$SYBASE/$SYBASE_OCS/sample/xa-dtm/cics/switch

This is a listing of sybasexa.mk.hp800. Edit it to reflect your configuration.

#
# Makefile to compile the LoadSwitchTable
# This makefile should be run with the command
# "make -f sybasexa.mk.hp800"
#

CC=/opt/ansic/bin/cc
CCOPTS= -Aa +z -Dsybasexa=CICS_XA_Init
ENCINA=/opt/encina
CICS=/opt/cics
LD=/usr/ccs/bin/ld

SYB_LIBDIR = $(SYBASE)/$(SYBASE_OCS)/lib
CICS_LIBDIR = $(CICS)/lib

all: sybasexa

sybasexa: sybasexa.o
$(LD) -b \
    +e CICS_XA_Init \
    -o sybasexa \
    sybasexa.o \
    $(CICS_LIBDIR)/regxa_swxa.o \
    -Bimmediate -Bnonfatal +s +b/opt/cics/lib \
    $(SYB_LIBDIR)/libxadtm.a \
    $(SYB_LIBDIR)/libct_r.a \
    $(SYB_LIBDIR)/libcs_r.sl \
    $(SYB_LIBDIR)/libtcl_v.a \
    $(SYB_LIBDIR)/libcomn_v.sl \
    $(SYB_LIBDIR)/libintl_r.sl \
    -lm \
    $(CICS_LIBDIR)/libcicsrt.sl \
    -lc 

sybasexa.o: sybasexa.c
    $(CC) -c $(CCOPTS)\
    -I$(ENCINA)/include sybasexa.c

NoteYou must use the shareable versions of CS-Library (libcs_r.sl) and Common Library (libcomn_r.sl).

You must have the ANSI C compiler to build the Load Switch Table.