2000-06-16 03:05:22 +08:00
|
|
|
#
|
2005-12-10 05:19:36 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/mSQL-interface/Makefile,v 1.11 2005/12/09 21:19:34 petere Exp $
|
2000-06-16 03:05:22 +08:00
|
|
|
#
|
|
|
|
|
2004-08-21 04:13:10 +08:00
|
|
|
NAME = mpgsql
|
|
|
|
SO_MAJOR_VERSION = 0
|
|
|
|
SO_MINOR_VERSION = 0
|
|
|
|
OBJS = mpgsql.o
|
|
|
|
|
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2005-09-28 01:13:14 +08:00
|
|
|
PGXS := $(shell pg_config --pgxs)
|
2004-08-21 04:13:10 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
2000-07-09 21:14:19 +08:00
|
|
|
subdir = contrib/mSQL-interface
|
|
|
|
top_builddir = ../..
|
2000-09-01 00:12:35 +08:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
2004-08-21 04:13:10 +08:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
all: all-lib
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
install: all installdirs install-lib
|
2005-12-10 05:19:36 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/README.$(NAME) '$(DESTDIR)$(docdir)/contrib'
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
installdirs:
|
2005-12-10 05:19:36 +08:00
|
|
|
$(mkinstalldirs) $(libdir) '$(DESTDIR)$(docdir)/contrib'
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
uninstall: uninstall-lib
|
2005-12-10 05:19:36 +08:00
|
|
|
rm -f '$(DESTDIR)$(docdir)/contrib/README.$(NAME)'
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
clean distclean maintainer-clean: clean-lib
|
|
|
|
rm -f $(OBJS)
|