# This file assumes the DB2 instance path is defined by the variable HOME.
# It also assumes DB2 is installed under the DB2 instance.
# If these statements are not correct, update the variable DB2PATH. 
DB2PATH = /usr/IBMdb2/V7.1

# Use the cc compiler
CC= cc

# The required compiler flags
CFLAGS= -g -I$(DB2PATH)/include 

# The required libraries 
LIBS= -L$(DB2PATH)/lib -Wl,-rpath,$(DB2PATH)/lib -ldb2 

# To connect to a remote SAMPLE database cataloged on the client machine
# with another name, update the DB variable.

all : getSqlTypeInfo

getSqlTypeInfo : getSqlTypeInfo.c
	$(CC) -o getSqlTypeInfo getSqlTypeInfo.c $(CFLAGS) $(LIBS)
