Commit 481a7439 authored by Bruce Momjian's avatar Bruce Momjian

plperl Makefile cleanup. Doesn't work on BSDI yet.

parent 22e7c065
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.2 2000/01/20 22:31:22 momjian Exp $ # $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.3 2000/01/20 23:00:39 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -21,7 +21,7 @@ ifeq ($(USE_TCL), true) ...@@ -21,7 +21,7 @@ ifeq ($(USE_TCL), true)
$(MAKE) -C tcl $@ $(MAKE) -C tcl $@
endif endif
ifeq ($(USE_PERL), true) ifeq ($(USE_PERL), true)
if [ "$@" = "install" ]; then \ -@if [ "$@" = "install" ]; then \
$(MAKE) $(MFLAGS) install-plperl; \ $(MAKE) $(MFLAGS) install-plperl; \
else \ else \
$(MAKE) $(MFLAGS) plperl/Makefile; \ $(MAKE) $(MFLAGS) plperl/Makefile; \
......
...@@ -93,18 +93,20 @@ endif ...@@ -93,18 +93,20 @@ endif
# #
# Build the shared lib # Build the shared lib
# #
plperl : plperl.lo all: plperl
libtool \$(CC) -o plperl.so plperl.lo \$(SHLIB_EXTRA_LIBS) \$(LDADD) \$(LDFLAGS)
%.lo : %.c plperl : plperl.o
libtool \$(CC) -c \$(CFLAGS) \$< \$(CC) -o plperl.so plperl.o \$(SHLIB_EXTRA_LIBS) \$(LDADD) \$(LDFLAGS)
%.o : %.c
\$(CC) -c \$(CFLAGS) \$<
# #
# Clean # Clean
# #
clean: clean:
rm -f \$(INFILES) *.o *.lo rm -f \$(INFILES) *.o
rm -rf .libs rm -rf .libs
rm -f Makefile rm -f Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment