PROJDIR = ${HOME}/src
PROC = ${ORACLE_HOME}/bin/proc
CC = cc
GFLIBDIR = $(PROJDIR)/lib
PUBDIR = $(PROJDIR)/pub
GFINCL = /
$(PROJDIR)/include
GFPUBINCL = /
$(PROJDIR)/include/pub
GFUPLDINCL = /
$(PROJDIR)/include/upld
# define the related head files of global
GFHEADS = /
$(GFINCL)/plib.h /
$(GFINCL)/pub/AgtInsPub.h /
$(GFINCL)/pub/agtstrulib.h /
$(GFINCL)/pub/AgtUpdPub.h /
$(GFINCL)/pub/fmtagttypelib.h /
$(GFINCL)/pub/AgtReadPub.h /
$(GFINCL)/pub/agttypelib.h /
$(GFINCL)/pub/fmtagtstrulib.h /
$(GFINCL)/pub/syscommapi.h /
$(GFINCL)/pub/AgtPubFunc.h /
$(GFINCL)/agttype.h /
$(GFINCL)/cnst.h /
$(GFINCL)/terrno.h
# define the related head files of server
# only including the head files of defining const and struct and type etc.
HEADFILES = $(GFHEADS)
# define objfiles of directory claim for libpub.a
PUB_A = $(GFLIBDIR)/libpub.a
PUBLIB = /
$(PUBDIR)/agtstrulib.o /
$(PUBDIR)/AgtInsPub.o /
$(PUBDIR)/AgtUpdPub.o /
$(PUBDIR)/fmtagttypelib.o /
$(PUBDIR)/agttypelib.o /
$(PUBDIR)/fmtagtstrulib.o /
$(PUBDIR)/AgtReadPub.o /
$(PUBDIR)/syscommlib.o /
$(PUBDIR)/AgtPubFunc.o
MYOPT=
.SUFFIXES:
.SUFFIXES: .o .pc .c .h .a
myall: publib
cleanall:
rm -f $(PUBLIB) 2>/dev/null
publib:$(PUB_A)
$(PUB_A):$(PUBLIB)
rm -f $(@) 2>/dev/null
ar ru $(@) $(PUBLIB)
.pc.o:
#$(PROC) INCLUDE=$(GFINCL) INCLUDE=$(GFPUBINCL) DEFINE=MK_AGT DEFINE=DEBUG_XAPI MODE=ORACLE DBMS=V8 UNSAFE_NULL=YES MAXLITERAL=10..2048 RELEASE_CURSOR=YES ONAME=$(*F).c INAME=$<
$(PROC) INCLUDE=$(GFINCL) INCLUDE=$(GFPUBINCL) INCLUDE=$(GFUPLDINCL) DYNAMIC=ANSI SQLCHECK=SEMANTICS USERID=amis_prd/amis_prd@ora10g DEFINE=MK_AGT DEFINE=MK_TD DEFINE=DEBUG_XAPI MODE=ORACLE DBMS=V8 UNSAFE_NULL=YES MAXLITERAL=10..2048 RELEASE_CURSOR=YES ONAME=$(*F).c INAME=$<
$(CC) -c -qcpluscmt -q32 -o $(@) -I$(GFINCL) -I$(GFPUBINCL) -I${ORACLE_HOME}/precomp/public -DMK_AGT -DDEBUG_XAPI $(*F).c
rm -f $(*F).c
## $(PROC) INCLUDE=$(GFINCL) INCLUDE=$(GFPUBINCL) DYNAMIC=ANSI DEFINE=MK_AGT DEFINE=DEBUG_XAPI MODE=ORACLE DBMS=V8 UNSAFE_NULL=YES MAXLITERAL=10..2048 RELEASE_CURSOR=YES ONAME=$(*F).c INAME=$<
##$(PROC) INCLUDE=$(GFINCL) INCLUDE=$(GFPUBINCL) USERID=amistest/amistest@ora SQLCHECK=SEMANTICS DEFINE=MK_TD DEFINE=DEBUG_XAPI MODE=ORACLE DBMS=V8 UNSAFE_NULL=YES MAXLITERAL=10..2048 RELEASE_CURSOR=YES ONAME=$(*F).c INAME=$<
.c.o:
$(CC) -c -I$(GFINCL) -I$(GFPUBINCL) -o $(@) $<