Data Transformation Engine Services Guide

Chapter 21 – Adding the Adapter to Mercator Command Server
118
Of course, they may NOT be the same name as other external symbols defined in the
Mercator Command Server executable.
Issue the command “nm Mercator” if you wish to see all of the symbols currently
defined. It may be easier however to ensure that all of your entry points begin with some
special prefix in order to prevent duplicate symbols. A successful link is impossible
without having unique symbol names.
makefile
You must change the makefile for Mercator Command Server to include your new
adapter. The makefile is listed below as it is shipped with the Mercator Command
Server for NonStop server.
#
# makefile for mercator for Tandem Himalaya
# This makefile is for use by HP/users for making the
# Mercator engine after adding user adapters
#
SHELL = sh
ECHO = echo
CP = cp
RM = rm
MQSERIES_GUARDIAN_VOL=NSDTE
HAVE_USER_ADAPTERS = -DHAVE_USER_ADAPTERS
USER_ADAPTERSD = libuseradapter.a
USER_ADAPTERS = -l useradapter
LIB_ATTUNITY = -l /G/NSDTE/NAVROOT/libnava
MERCVER = -DMERC50 -DMERC20 -DNEWAUDIT -DMERC_DB
TANDEM_OSS_FLAGS = -Wsystype=oss -Wnowarn -Wextensions -Woptimize=0
TANDEM_OSS_FLAGS1 = -WBstatic
TANDEM_OSS_FLAGS2 = -Wsuppress -Wmap
TANDEM_OSS_FLAGS3 = -Wsaveabend
TANDEM_CPP_FLAGS = -Wcplusplus -Wversion2
TANDEM_SQL_FLAGS = -Wverbose -Wsqlmx
TANDEM_LINK_FLAGS1 = -Wnld=/G/$(MQSERIES_GUARDIAN_VOL)/zmqslib/mqmlibn
$(TANDEM_CPP_FLAGS) $(TANDEM_SQL_FLAGS) $(LIB_ATTUNITY)
ADAPTER_DEFS = -DDBUTIL -DBEATUXEDO -DM4FTP -DM4HTTP -DM4EMAIL -DM4MQS
ADAPTERSD = libm4tux.a libm4ftp.a libm4http.a libm4email.a libm4mqs.a
libdbutil.a libdbodbc.a libdbmap.a libdbsqlmp.a libdbsqlmx.a
ADAPTERS = -lm4tux -l m4ftp -l m4http -lm4email -lm4mqs -l dbutil -l
dbodbc -l dbmap -l dbsqlmp -l dbsqlmx
SSLIBSD = libsslibs.a
SSLIBS = -l sslibs
BEATUX = -l tux -l tux2 -l fml -l fml32 -l gp -l buft -l tux -l tux2 -l
fml -l fml32 -l gp -l buft
BEATUXLIB = -L /tuxedoR6.5/lib
PLATAPID = libplatapi.a
PLATAPI = -l platapi
MERCPID = libmercpi.a
MERCPI = -l mercpi
MERCADPTD = libmercadpt.a
MERCADPT = -l mercadpt
MRESNAMED = libmresname.a
MRESNAME = -l mresname