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