mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 14:36:58 +02:00
091126fa28
the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
40 lines
661 B
Makefile
40 lines
661 B
Makefile
#
|
|
# PostgreSQL lo type
|
|
#
|
|
# Makefile pinched from the ip-mac contrib package
|
|
#
|
|
# $Id: Makefile,v 1.2 2000/05/29 05:44:27 tgl Exp $
|
|
|
|
SRCDIR= ../../src
|
|
|
|
include $(SRCDIR)/Makefile.global
|
|
|
|
CONTRIBDIR=$(LIBDIR)/modules
|
|
|
|
CFLAGS+= $(CFLAGS_SL)
|
|
|
|
ifdef REFINT_VERBOSE
|
|
CFLAGS+= -DREFINT_VERBOSE
|
|
endif
|
|
|
|
TARGETS= lo$(DLSUFFIX) lo.sql
|
|
|
|
CLEANFILES+= $(TARGETS)
|
|
|
|
all:: $(TARGETS)
|
|
|
|
install:: all $(CONTRIBDIR)
|
|
for f in *$(DLSUFFIX); do $(INSTALL) -c $$f $(CONTRIBDIR)/$$f; done
|
|
|
|
$(CONTRIBDIR):
|
|
mkdir -p $(CONTRIBDIR)
|
|
|
|
%.sql: %.sql.in
|
|
rm -f $@; \
|
|
C=`pwd`; \
|
|
sed -e "s:_OBJWD_:$(CONTRIBDIR):g" \
|
|
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" < $< > $@
|
|
|
|
clean:
|
|
rm -f $(TARGETS) *.o
|