Sample Makefile - Access Module

Teradata® Tools and Utilities Access Module Programmer Guide

Product
Access Module
Release Number
17.10
Published
June 2021
Language
English (United States)
Last Update
2021-07-01
dita:mapPath
ung1608578381741.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2424
lifecycle
previous
Product Category
Teradata Tools and Utilities

Before running the makefile, set the symbol INCDIR to the directory in which pmddamt.h and pmdcomt.h are stored. Set the symbol SRCDIR to the directory in which the sample source (or yours) is stored.

#**********************************************************************
#*
#* TITLE: amsample.mak - Sample Access Module MAKE
#*
#* This file builds a sample Access Module.
#*
#* Invoke this makefile directly. Do NOT use the toplevel makefile!
#* This makefile is intended to be useable in customer environments.
#*
#**********************************************************************
OBJS = amsample.o
INCDIR  = ../inc
SRCDIR  = ../src
NESTINC = $(INCDIR)/pmdcomt.h \
          $(INCDIR)/pmddamt.h
CCFlags = -c -g -I$(INCDIR)
amsample.so: $(OBJS)
        cc -G -g $(OBJS) -o amsample.so
amsample.o: $(NESTINC) $(SRCDIR)/amsample.c
        cc $(CCFlags) $(SRCDIR)/amsample.c
# DO NOT DELETE THIS LINE -- make depend depends on it.