# copyright (c) 2003 H.E.I. GmbH Mannheim

SAPDB_PRECOMPILER_HOME      = /usr/sapdb/interfaces/precompiler
SAPDB_INSTANCE  = PRODDB
SAPDB_HOST      = localhost
SAPDBINCLUDE    = ${SAPDB_PRECOMPILER_HOME}/incl
SAPDBLIB        = ${SAPDB_PRECOMPILER_HOME}/lib

SAPDB_LIBS      = -lm -L$(SAPDBLIB) -lpcr -lsqlca
CPC=cpc

CFLAGS=-g

storewithputval:	storewithputval.o
	$(CC) -o storewithputval storewithputval.o $(SAPDB_LIBS)

storewithputval.o:	storewithputval.c
	$(CC) $(CFLAGS) -c -I${SAPDBINCLUDE} $<

storewithputval.c: storewithputval.cpc
	$(CPC) -c -d $(SAPDB_INSTANCE) -n $(SAPDB_HOST) -u dba,dba $*

clean:
	rm -f storewithputval *.o storewithputval.c storewithputval.pcl
