1998-06-16 15:07:11 +08:00
|
|
|
#
|
2000-07-09 21:14:19 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/lo/Makefile,v 1.7 2000/07/09 13:13:14 petere Exp $
|
1998-06-16 15:07:11 +08:00
|
|
|
#
|
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
subdir = contrib/lo
|
|
|
|
top_builddir = ../..
|
|
|
|
include ../../src/Makefile.global
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
NAME := lo
|
|
|
|
SONAME := $(NAME)$(DLSUFFIX)
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-06-19 21:54:50 +08:00
|
|
|
SQLS = $(NAME).sql lo_drop.sql lo_test.sql
|
2000-06-16 02:55:34 +08:00
|
|
|
MODS = $(NAME)$(DLSUFFIX)
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
CFLAGS += -I. $(CFLAGS_SL)
|
1998-06-16 15:07:11 +08:00
|
|
|
|
|
|
|
ifdef REFINT_VERBOSE
|
|
|
|
CFLAGS+= -DREFINT_VERBOSE
|
|
|
|
endif
|
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
all: $(SONAME) $(NAME).sql
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
$(NAME).sql: $(NAME).sql.in
|
|
|
|
sed -e 's:MODULE_PATHNAME:$(libdir)/contrib/$(SONAME):g' < $< > $@
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
install: all installdirs
|
|
|
|
$(INSTALL_SHLIB) $(SONAME) $(libdir)/contrib
|
|
|
|
$(INSTALL_DATA) README.$(NAME) $(docdir)/contrib
|
|
|
|
$(INSTALL_DATA) $(NAME).sql $(datadir)/contrib
|
|
|
|
$(INSTALL_DATA) lo_drop.sql $(datadir)/contrib
|
|
|
|
$(INSTALL_DATA) lo_test.sql $(datadir)/contrib
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
installdirs:
|
|
|
|
$(mkinstalldirs) $(libdir)/contrib $(docdir)/contrib $(datadir)/contrib
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
uninstall:
|
|
|
|
rm -f $(libdir)/contrib/$(SONAME) $(docdir)/contrib/README.$(NAME) \
|
|
|
|
$(addprefix $(datadir)/contrib/, $(NAME).sql lo_drop.sql lo_test.sql)
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
clean distclean maintainer-clean:
|
|
|
|
rm -f $(SONAME) $(NAME).sql
|
2000-06-16 02:55:34 +08:00
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|