1998-02-14 18:58:09 +01:00
|
|
|
#
|
|
|
|
# PostgreSQL types for IP and MAC addresses
|
|
|
|
#
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
# $Id: Makefile,v 1.3 1998/04/22 04:14:11 scrappy Exp $
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
SRCDIR= ../../src
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
include $(SRCDIR)/Makefile.global
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
CONTRIBDIR=$(LIBDIR)/modules
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
CFLAGS+= $(CFLAGS_SL) -I$(SRCDIR)/include
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
ifdef REFINT_VERBOSE
|
|
|
|
CFLAGS+= -DREFINT_VERBOSE
|
|
|
|
endif
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
TARGETS= ip$(DLSUFFIX) ip.sql mac$(DLSUFFIX) mac.sql
|
1998-01-25 08:11:07 +01:00
|
|
|
|
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
1998-04-22 06:16:46 +02:00
|
|
|
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
|