2
2
#
3
3
# Makefile for the pltcl shared object
4
4
#
5
- # $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.32 2001/05/09 21:42:29 momjian Exp $
5
+ # $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.33 2001/05/11 23:38:06 petere Exp $
6
6
#
7
7
# -------------------------------------------------------------------------
8
8
@@ -66,17 +66,6 @@ override CPPFLAGS += $(TCL_DEFS)
66
66
override CFLAGS = $(TCL_CFLAGS_OPTIMIZE ) $(TCL_SHLIB_CFLAGS )
67
67
68
68
69
- # Uncomment the following to enable the unknown command lookup on the
70
- # first of all calls to the call handler. See the doc in the modules
71
- # directory about details.
72
-
73
- ifeq ($(enable_pltcl_unknown ) , yes)
74
- override CPPFLAGS+ = -DPLTCL_UNKNOWN_SUPPORT
75
- TCL_UNKNOWN_MODS = modules/pltcl_loadmod \
76
- modules/pltcl_delmod \
77
- modules/pltcl_listmod
78
- endif
79
-
80
69
#
81
70
# DLOBJS is the dynamically-loaded object file.
82
71
#
@@ -96,57 +85,45 @@ endif
96
85
97
86
ifeq ($(TCL_SHARED_BUILD ) , 1)
98
87
99
- all : $(INFILES ) $(TCL_UNKNOWN_MODS )
100
-
101
- modules/pltcl_loadmod : modules/pltcl_loadmod.in \
102
- $(top_builddir ) /src/Makefile.global
103
- sed -e ' s,@TCLSH@,$(TCLSH),g' \
104
- $< > $@
105
- chmod a+x $@
106
-
107
- modules/pltcl_delmod : modules/pltcl_delmod.in \
108
- $(top_builddir ) /src/Makefile.global
109
- sed -e ' s,@TCLSH@,$(TCLSH),g' \
110
- $< > $@
111
- chmod a+x $@
112
-
113
- modules/pltcl_listmod : modules/pltcl_listmod.in \
114
- $(top_builddir ) /src/Makefile.global
115
- sed -e ' s,@TCLSH@,$(TCLSH),g' \
116
- $< > $@
117
- chmod a+x $@
88
+ all : $(INFILES )
89
+ ifeq ($(enable_pltcl_unknown ) , yes)
90
+ $(MAKE) -C modules $@
91
+ endif
118
92
119
93
pltcl$(DLSUFFIX ) : pltcl.o
120
94
121
95
install : all installdirs
122
96
$(INSTALL_SHLIB ) $(DLOBJS ) $(DESTDIR )$(libdir ) /$(DLOBJS )
123
97
ifeq ($(enable_pltcl_unknown ) , yes)
124
- $(INSTALL_SCRIPT) modules/pltcl_loadmod \
125
- $(DESTDIR)$(bindir)/pltcl_loadmod
126
- $(INSTALL_SCRIPT) modules/pltcl_delmod \
127
- $(DESTDIR)$(bindir)/pltcl_delmod
128
- $(INSTALL_SCRIPT) modules/pltcl_listmod \
129
- $(DESTDIR)$(bindir)/pltcl_listmod
130
- $(INSTALL_DATA) modules/unknown.pltcl \
131
- $(DESTDIR)$(datadir)/unknown.pltcl
98
+ $(MAKE) -C modules $@
132
99
endif
133
100
134
101
installdirs :
135
102
$(mkinstalldirs ) $(DESTDIR )$(libdir )
103
+ ifeq ($(enable_pltcl_unknown ) , yes)
104
+ $(MAKE) -C modules $@
105
+ endif
136
106
137
107
uninstall :
138
108
rm -f $(DESTDIR )$(libdir ) /$(DLOBJS )
109
+ ifeq ($(enable_pltcl_unknown ) , yes)
110
+ $(MAKE) -C modules $@
111
+ endif
139
112
140
- else
113
+ else # TCL_SHARED_BUILD = 0
141
114
142
115
all install :
143
116
@echo " *****" ; \
144
117
echo " * Cannot build pltcl because Tcl is not a shared library; skipping it." ; \
145
118
echo " *****"
146
- endif
119
+
120
+ endif # TCL_SHARED_BUILD = 0
147
121
148
122
Makefile.tcldefs : mkMakefile.tcldefs.sh
149
123
$(SHELL ) $< ' $(TCL_CONFIG_SH)' ' $@'
150
124
151
125
clean distclean maintainer-clean :
152
- rm -f $(INFILES ) pltcl.o Makefile.tcldefs modules/pltcl_listmod modules/pltcl_loadmod modules/pltcl_delmod
126
+ rm -f $(INFILES ) pltcl.o Makefile.tcldefs
127
+ ifeq ($(enable_pltcl_unknown ) , yes)
128
+ $(MAKE) -C modules $@
129
+ endif
0 commit comments