| @@ -1,51 +1,55 @@ | | | @@ -1,51 +1,55 @@ |
1 | #------------------------------------------------------------------------- | | 1 | #------------------------------------------------------------------------- |
2 | # | | 2 | # |
3 | # Makefile.libtool | | 3 | # Makefile.libtool |
4 | # Common rules for buildling libtool archives | | 4 | # Common rules for buildling libtool archives |
5 | # | | 5 | # |
6 | # IDENTIFICATION | | 6 | # IDENTIFICATION |
7 | # $NetBSD: Makefile.libtool,v 1.2 2010/08/01 17:01:02 jdolecek Exp $ | | 7 | # $NetBSD: Makefile.libtool,v 1.3 2010/08/04 06:00:55 mbalmer Exp $ |
8 | # | | 8 | # |
9 | #------------------------------------------------------------------------- | | 9 | #------------------------------------------------------------------------- |
10 | | | 10 | |
11 | ## | | 11 | ## |
12 | ## Hacks/workarounds for makefiles in certain directories | | 12 | ## Hacks/workarounds for makefiles in certain directories |
13 | ## | | 13 | ## |
14 | | | 14 | |
15 | # The following directories are building loadable shared modules, not | | 15 | # The following directories are building loadable shared modules, not |
16 | # shared libraries. | | 16 | # shared libraries. |
17 | # | | 17 | # |
18 | ifneq (,$(findstring src/backend/utils/mb/conversion_procs/,$(subdir))) | | 18 | ifneq (,$(findstring src/backend/utils/mb/conversion_procs/,$(subdir))) |
19 | shmodule = yes | | 19 | shmodule = yes |
20 | else | | 20 | else |
21 | ifneq (,$(findstring src/backend/snowball,$(subdir))) | | 21 | ifneq (,$(findstring src/backend/snowball,$(subdir))) |
22 | shmodule = yes | | 22 | shmodule = yes |
23 | else | | 23 | else |
24 | ifneq (,$(findstring src/pl/,$(subdir))) | | 24 | ifneq (,$(findstring src/pl/,$(subdir))) |
25 | shmodule = yes | | 25 | shmodule = yes |
26 | else | | 26 | else |
27 | ifneq (,$(findstring contrib/adminpack,$(subdir))) | | 27 | ifneq (,$(findstring contrib/adminpack,$(subdir))) |
28 | shmodule = yes | | 28 | shmodule = yes |
29 | else | | 29 | else |
30 | ifneq (,$(findstring contrib/pgcrypto,$(subdir))) | | 30 | ifneq (,$(findstring contrib/pgcrypto,$(subdir))) |
31 | shmodule = yes | | 31 | shmodule = yes |
32 | else | | 32 | else |
| | | 33 | ifneq (,$(findstring contrib/dblink,$(subdir))) |
| | | 34 | shmodule = yes |
| | | 35 | else |
33 | shmodule = no | | 36 | shmodule = no |
34 | endif | | 37 | endif |
35 | endif | | 38 | endif |
36 | endif | | 39 | endif |
37 | endif | | 40 | endif |
38 | endif | | 41 | endif |
| | | 42 | endif |
39 | | | 43 | |
40 | # Fix dependencies in some makefiles that assume the target matches | | 44 | # Fix dependencies in some makefiles that assume the target matches |
41 | # %.o so that when built for libtool, the target matches the corresponding | | 45 | # %.o so that when built for libtool, the target matches the corresponding |
42 | # %.lo. | | 46 | # %.lo. |
43 | # | | 47 | # |
44 | ifeq ($(subdir), src/interfaces/ecpg/ecpglib) | | 48 | ifeq ($(subdir), src/interfaces/ecpg/ecpglib) |
45 | path.lo: path.c $(top_builddir)/src/port/pg_config_paths.h | | 49 | path.lo: path.c $(top_builddir)/src/port/pg_config_paths.h |
46 | endif | | 50 | endif |
47 | | | 51 | |
48 | ifeq ($(subdir), src/interfaces/libpq) | | 52 | ifeq ($(subdir), src/interfaces/libpq) |
49 | fe-connect.lo: fe-connect.c $(top_builddir)/src/port/pg_config_paths.h | | 53 | fe-connect.lo: fe-connect.c $(top_builddir)/src/port/pg_config_paths.h |
50 | endif | | 54 | endif |
51 | | | 55 | |