diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1998-08-30 19:37:51 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1998-08-30 19:37:51 +0000 |
| commit | eec4c7366f04aa258bb8b7fcd2bbc90eda1cc271 (patch) | |
| tree | dfb6b70845221063cc0515177b993713595ff69c /contrib/miscutil/Makefile | |
| parent | 3067ac8e77369c1b41195b4d90e2ff2c0b23bc7f (diff) | |
| download | postgresql-eec4c7366f04aa258bb8b7fcd2bbc90eda1cc271.tar.gz | |
From: Massimo Dal Zotto <dz@cs.unitn.it>
Here is a tar file the new directories, which substitute the old ones
in contrib. Please remove the old directories array, datetime, miscutil,
string and userlock before unpacking the tar file in contrib.
Note that as the modules are now installed in lib/modules I install all
my sql code in lib/sql. In my opinion also the other contributors should
follow these rules.
Diffstat (limited to 'contrib/miscutil/Makefile')
| -rw-r--r-- | contrib/miscutil/Makefile | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/contrib/miscutil/Makefile b/contrib/miscutil/Makefile index 33ba1e0937..ecb855e560 100644 --- a/contrib/miscutil/Makefile +++ b/contrib/miscutil/Makefile @@ -1,7 +1,8 @@ #------------------------------------------------------------------------- # -# Makefile-- -# Makefile for array iterator functions. +# Makefile -- +# +# Makefile for the misc_util module. # #------------------------------------------------------------------------- @@ -15,36 +16,35 @@ INCLUDE_OPT = -I ./ \ -I $(SRCDIR)/include \ -I $(SRCDIR)/port/$(PORTNAME) -CFLAGS += $(INCLUDE_OPT) - -ifeq ($(PORTNAME), linux) - ifdef LINUX_ELF - ifeq ($(CC), gcc) - CFLAGS += -fPIC - endif - endif -endif - -ifeq ($(PORTNAME), i386_solaris) - CFLAGS+= -fPIC -endif +CFLAGS += $(INCLUDE_OPT) $(CFLAGS_SL) MODNAME = misc_utils MODULE = $(MODNAME)$(DLSUFFIX) +MODDIR = $(LIBDIR)/modules + +SQLDIR = $(LIBDIR)/sql + all: module sql module: $(MODULE) sql: $(MODNAME).sql -install: $(MODULE) - cp -p $(MODULE) $(LIBDIR)/modules - cd $(LIBDIR)/modules; strip $(MODULE) +install: $(MODULE) $(MODDIR) $(SQLDIR) + cp -p $(MODULE) $(MODDIR)/ + strip $(MODDIR)/$(MODULE) + cp -p $(MODNAME).sql $(SQLDIR)/ + +$(MODDIR): + mkdir -p $@ + +$(SQLDIR): + mkdir -p $@ %.sql: %.sql.in - sed "s|MODULE_PATHNAME|$(LIBDIR)/modules/$(MODULE)|" < $< > $@ + sed "s|MODULE_PATHNAME|$(MODDIR)/$(MODULE)|" < $< > $@ .SUFFIXES: $(DLSUFFIX) @@ -55,7 +55,7 @@ depend dep: $(CC) -MM $(INCLUDE_OPT) *.c >depend clean: - rm -f $(MODULE) $(MODNAME).sql assert_test.so + rm -f *~ $(MODULE) $(MODNAME).sql ifeq (depend,$(wildcard depend)) include depend |
