LIBS = -lm
PROC = ${ORACLE_HOME}/bin/proc
CC = cc
PROJDIR = ${HOME}/src
ULIBS = "${HOME}/src/lib/libxapi.a ${HOME}/src/lib/seragt.a ${HOME}/src/lib/libtapi.a ${HOME}/src/lib/libpub.a /home/tuxedo/bea/tuxedo8.1/lib/tpinit.o"
#OBJFILES = "$(PROJDIR)/trans/xapi/lib/errlog.o"
#INFLIB = "-lixsql -lixasf -lixgen -lixos -lixgls -lnsl_s -lcrypt_i /usr/lib/libgen.a -lsocket -lm -lsuds -lx -lelf -lprot -lx -ltinfo -lm /u/informix/lib/esql/checkapi.o -lixglx"
INFLIB ="-linfxxa -lixos -lixgen -lixsql -lixasf -lixos -lixgls -lnsl_s -lm -lV3 -lcl -lsec -lixglx"
ORALIB ="-lclntsh -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lnoname10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -ldl -lm -lpthread -lnsl"
TUXLIB = -L${TUXDIR}/lib
TRANSDIR = $(PROJDIR)/trans
GFINCL = $(PROJDIR)/include
GFTRANSINCL = $(GFINCL)/trans
GFPUBINCL = $(GFINCL)/pub
GFUPLDINCL = $(GFINCL)/upld
TRANSLIBINCL= $(PROJDIR)/trans/xapi/lib
TRANSUPLDLIBINCL= $(PROJDIR)/trans/xapi/upldlib
.SUFFIXES:
.SUFFIXES: .o .pc .c .h .a
.pc.o:
$(PROC) INCLUDE=$(GFINCL) INCLUDE=${ORACLE_HOME}/precomp/public INCLUDE=$(GFTRANSINCL) INCLUDE=$(GFPUBINCL) INCLUDE=$(TRANSLIBINCL) INCLUDE=$(GFUPLDINCL) INCLUDE=$(TRANSUPLDLIBINCL) INCLUDE=${TUXDIR}/include DEFINE=DEBUG_XAPI MODE=ORACLE DBMS=V8 UNSAFE_NULL=YES MAXLITERAL=10..2048 RELEASE_CURSOR=YES ONAME=$(*F).c INAME=$<
$(CC) -c -o $(*F).o -I$(GFINCL) -I${ORACLE_HOME}/precomp/public -I${TUXDIR}/include -I$(TRANSLIBINCL) -I$(GFTRANSINCL) -I$(GFUPLDINCL) -I$(TRANSUPLDLIBINCL) -I$(GFPUBINCL) $(*F).c
install all: amis2
amis2:$(PROJDIR)/trans/service/amis2.o
buildserver -v -o amis2 -f amis2.o /
-f ${ULIBS} -f $(ORALIB) /
-s @$(PROJDIR)/trans/service/amis2.service /
-r Oracle_XA
rm -f $(PROJDIR)/appbin/amis2
mv amis2 $(PROJDIR)/appbin
rm *.o
rm *.c
clean:
-rm -f *.c 2>/dev/null
-rm -f *.o 2>/dev/null