我的makefile文件如下
LIBDIR=$(HOME)/lib
INFORMIXINCL=$(INFORMIXDIR)/incl/esql
TUXINCL=$(TUXDIR)/include
INCLDIR=$(HOME)/incl
COREINCLDIR=$(HOME)/aix/incl
#LIBS= -f $(LIBDIR)/libpub.a -f $(LIBDIR)/libbcf.a -f$(LIBDIR)/libsavjx.a
LIBS= -f $(LIBDIR)/libpub.a -f $(LIBDIR)/libdac.a \
-f $(LIBDIR)/libbcf.a \
-f$(LIBDIR)/libsavjx.a
ECC=esql
.SUFFIXES: .ec .c .o.ec .o.c
.ec.o:
@-rm -f $*.c
$(ECC) -c -I$(INFORMIXINCL) -I$(TUXINCL) -I$(INCLDIR) -I$(COREINCLDIR) $*.
ec
@-rm -f $*.c
.c.o:
cc -O -c -I$(TUXINCL) -I$(INCLDIR) -I$(COREINCLDIR) $*.c
OBJ= PZX_pzcrzk.o PZX_pzjgdb.o PZX_pzgydb.o PZX_pzcskh.o\
PZX_pzgsjg.o PZX_pzzfgl.o PZX_pzpub.o PZX_pzxh.o hss_czygm.o\
PZX_pzmzcl.o
SERVICES= -s AS_PZCRZK -s AS_PZJGDB -s AS_PZGYDB \
-s AS_PZCSKH -s AS_PZGSJG -s AS_PZZFGL -s AS_PZXH -s CZYGM\
-s AS_PZDBMZ
all: PS_PZGL d s
rmc:
rm -f *.c *.o
PS_PZGL(OBJ)
@echo "\nCompiling PZX Sources......"
@CC=$(ECC) buildserver -r $(RM) -o $@ -f "$? " $(LIBS) $(SERVICES)
-mv -f $@ $(HOME)/bin
编译的时候报这样的错误
Compiling PZX Sources......
Undefined first referenced
symbol in file
_pzh_gxjs PZX_pzpub.o
PubGetCzy PZX_pzgydb.o
PubGetJg PZX_pzjgdb.o
PubPzdb PZX_pzpub.o
PubTrBegin PZX_pzcrzk.o
PubGetZfh PZX_pzcskh.o
PubTrApp PZX_pzcrzk.o
PubPzsy PZX_pzcskh.o
PubGetPzzl PZX_pzpub.o
PubErr PZX_pzgydb.o
PubPzdbmz PZX_pzpub.o
errout hss_czygm.o
PubTrEnd PZX_pzcrzk.o
ERROR: Symbol referencing errors. No output written to PS_PZGL
CMDTUX_CAT:1832: ERROR: can't execute esql -I/usr/informix/incl -I/usr/informix/
incl/esql -I$TUXDIR/include -o PS_PZGL BS-b76.c -L${TUXDIR}/lib PZX_pzcrzk.o PZ
X_pzjgdb.o PZX_pzgydb.o PZX_pzcskh.o PZX_pzgsjg.o PZX_pzzfgl.o PZX_pzpub.o PZX_p
zxh.o hss_czygm.o PZX_pzmzcl.o /home/work/lib/libpub.a /home/work/lib/libdac.a
/home/work/lib/libbcf.a /home/work/lib/libsavjx.a -ltux -lbuft -ltux2 -L/usr/t
uxedo/lib -L${INFORMIXDIR}/lib -L${INFORMIXDIR}/lib/esql -lixsql -lixasf -lixgen
-lixos -lixgls -lnsl_s -lcrypt_i /usr/lib/libgen.a -lsocket -lm -lsuds -lx -lel
f -lprot -ltinfo /usr/informix/lib/esql/checkapi.o -lixglx -lfml -lfml32 -lgp /u
sr/lib/libcrypt.a -belf -lnsl -lsocket
*** Error code 1 (bu21)