Makefile.in
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:1k
- #-------------------------------------------------------------------------
- #
- # Makefile.inc--
- # Makefile for bin/psql
- #
- # Copyright (c) 1994, Regents of the University of California
- #
- #
- # IDENTIFICATION
- # $Header: /usr/local/cvsroot/pgsql/src/bin/psql/Makefile.in,v 1.15 1999/01/17 06:19:19 momjian Exp $
- #
- #-------------------------------------------------------------------------
- SRCDIR= ../..
- include ../../Makefile.global
- CFLAGS:= -I$(LIBPQDIR) $(CFLAGS)
- #
- # And where libpq goes, so goes the authentication stuff...
- #
- ifdef KRBVERS
- LDFLAGS+= $(KRBLIBS)
- CFLAGS+= $(KRBFLAGS)
- endif
- ifdef MULTIBYTE
- CFLAGS+= $(MBFLAGS)
- endif
- OBJS= psql.o stringutils.o @STRDUP@ @STRERROR2@
- all: submake psql
- psql: $(OBJS) $(LIBPQDIR)/libpq.a
- $(CC) -o psql -L$(LIBPQDIR) $(OBJS) -lpq $(LDFLAGS)
- ../../utils/strdup.o:
- $(MAKE) -C ../../utils strdup.o
- .PHONY: submake
- submake:
- $(MAKE) -C $(LIBPQDIR) libpq.a
- install: psql
- $(INSTALL) $(INSTL_EXE_OPTS) psql$(X) $(BINDIR)/psql$(X)
- depend dep:
- $(CC) -MM $(CFLAGS) *.c >depend
- clean:
- rm -f psql$(X) $(OBJS)
- ifeq (depend,$(wildcard depend))
- include depend
- endif