diff options
| author | Peter Eisentraut | 2008-04-07 14:15:58 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2008-04-07 14:15:58 +0000 |
| commit | 46e76373ec6036a0a53206ef0ea87df75d082c48 (patch) | |
| tree | ca715a035d641cdd7af1bf074848e435da28a1df /src/makefiles | |
| parent | 8deafd6fdff78ce5412b6de75efc07ee7283a266 (diff) | |
Implement a few changes to how shared libraries and dynamically loadable
modules are built. Foremost, it creates a solid distinction between these two
types of targets based on what had already been implemented and duplicated in
ad hoc ways before. Specifically,
- Dynamically loadable modules no longer get a soname. The numbers previously
set in the makefiles were dummy numbers anyway, and the presence of a soname
upset a few packaging tools, so it is nicer not to have one.
- The cumbersome detour taken on installation (build a libfoo.so.0.0.0 and
then override the rule to install foo.so instead) is removed.
- Lots of duplicated code simplified.
Diffstat (limited to 'src/makefiles')
| -rw-r--r-- | src/makefiles/pgxs.mk | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 67eef5dd714..71bc7dce548 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -1,6 +1,6 @@ # PGXS: PostgreSQL extensions makefile -# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.11 2007/10/16 15:59:59 tgl Exp $ +# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.12 2008/04/07 14:15:58 petere Exp $ # This file contains generic rules to build many kinds of simple # extension modules. You only need to set a few variables and include @@ -80,10 +80,6 @@ all: $(PROGRAM) $(DATA_built) $(SCRIPTS_built) $(addsuffix $(DLSUFFIX), $(MODULE ifdef MODULE_big # shared library parameters NAME = $(MODULE_big) -SO_MAJOR_VERSION= 0 -SO_MINOR_VERSION= 0 - -SHLIB_LINK += $(BE_DLLLIBS) include $(top_srcdir)/src/Makefile.shlib @@ -121,9 +117,6 @@ endif # DOCS ifdef PROGRAM $(INSTALL_PROGRAM) $(PROGRAM)$(X) '$(DESTDIR)$(bindir)' endif # PROGRAM -ifdef MODULE_big - $(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(pkglibdir)/$(MODULE_big)$(DLSUFFIX)' -endif # MODULE_big ifdef SCRIPTS @for file in $(addprefix $(srcdir)/, $(SCRIPTS)); do \ echo "$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)'"; \ @@ -137,6 +130,10 @@ ifdef SCRIPTS_built done endif # SCRIPTS_built +ifdef MODULE_big +install: install-lib +endif # MODULE_big + installdirs: ifneq (,$(DATA)$(DATA_built)) @@ -145,7 +142,7 @@ endif ifneq (,$(DATA_TSEARCH)) $(mkinstalldirs) '$(DESTDIR)$(datadir)/tsearch_data' endif -ifneq (,$(MODULES)$(MODULE_big)) +ifneq (,$(MODULES)) $(mkinstalldirs) '$(DESTDIR)$(pkglibdir)' endif ifdef DOCS @@ -157,6 +154,10 @@ ifneq (,$(PROGRAM)$(SCRIPTS)$(SCRIPTS_built)) $(mkinstalldirs) '$(DESTDIR)$(bindir)' endif +ifdef MODULE_big +installdirs: installdirs-lib +endif # MODULE_big + uninstall: ifneq (,$(DATA)$(DATA_built)) @@ -174,9 +175,6 @@ endif ifdef PROGRAM rm -f '$(DESTDIR)$(bindir)/$(PROGRAM)$(X)' endif -ifdef MODULE_big - rm -f '$(DESTDIR)$(pkglibdir)/$(MODULE_big)$(DLSUFFIX)' -endif ifdef SCRIPTS rm -f $(addprefix '$(DESTDIR)$(bindir)'/, $(SCRIPTS)) endif @@ -184,6 +182,10 @@ ifdef SCRIPTS_built rm -f $(addprefix '$(DESTDIR)$(bindir)'/, $(SCRIPTS_built)) endif +ifdef MODULE_big +uninstall: uninstall-lib +endif # MODULE_big + clean: ifdef MODULES |
