1998-06-16 15:07:11 +08:00
|
|
|
#
|
2000-07-05 00:17:21 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/lo/Makefile,v 1.6 2000/07/04 16:16:54 momjian Exp $
|
1998-06-16 15:07:11 +08:00
|
|
|
#
|
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
TOPDIR=../..
|
|
|
|
|
|
|
|
include ../Makefile.global
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
NAME = lo
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
PROGRAM =
|
|
|
|
OBJS = $(NAME).o
|
2000-06-19 21:54:50 +08:00
|
|
|
DOCS = README.$(NAME)
|
|
|
|
SQLS = $(NAME).sql lo_drop.sql lo_test.sql
|
2000-06-16 02:55:34 +08:00
|
|
|
BINS =
|
|
|
|
EXAMPLES=
|
|
|
|
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-06-16 02:55:34 +08:00
|
|
|
OTHER_CLEAN = $(SQLS)
|
|
|
|
|
|
|
|
all: $(MODS) $(SQLS)
|
1998-06-16 15:07:11 +08:00
|
|
|
|
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
%.sql: %.sql.in
|
2000-07-05 00:17:21 +08:00
|
|
|
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$(@:.sql=$(DLSUFFIX))|" < $< > $@
|
1998-06-16 15:07:11 +08:00
|
|
|
|
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
install: install_doc install_sql install_mod
|
1998-06-16 15:07:11 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
install_doc:
|
|
|
|
for inst_file in $(DOCS); do \
|
2000-06-19 21:54:50 +08:00
|
|
|
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
|
2000-06-16 02:55:34 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
install_sql:
|
|
|
|
for inst_file in $(SQLS); do \
|
|
|
|
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_SQLDIR); \
|
|
|
|
done
|
|
|
|
|
|
|
|
install_mod:
|
|
|
|
for inst_file in $(MODS); do \
|
|
|
|
$(INSTALL) $(INSTL_SHLIB_OPTS) $$inst_file $(CONTRIB_MODDIR); \
|
|
|
|
done
|
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|
1998-06-16 15:07:11 +08:00
|
|
|
|