postgresql/src/pl/plpgsql/src/Makefile

58 lines
1.3 KiB
Makefile
Raw Normal View History

1998-09-25 17:50:02 +02:00
#-------------------------------------------------------------------------
#
# Makefile for the plpgsql shared object
1998-09-25 17:50:02 +02:00
#
2010-09-20 22:08:53 +02:00
# src/pl/plpgsql/src/Makefile
1998-09-25 17:50:02 +02:00
#
#-------------------------------------------------------------------------
subdir = src/pl/plpgsql/src
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global
# Shared library parameters
NAME= plpgsql
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
SHLIB_LINK = $(filter -lintl, $(LIBS))
rpath =
OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o
all: all-lib
# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib
1998-09-25 17:50:02 +02:00
install: installdirs all install-lib
1998-09-25 17:50:02 +02:00
installdirs: installdirs-lib
1998-09-25 17:50:02 +02:00
uninstall: uninstall-lib
1998-09-25 17:50:02 +02:00
# Force these dependencies to be known even without dependency info built:
pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o: plpgsql.h pl_gram.h
1998-09-25 17:50:02 +02:00
# See notes in src/backend/parser/Makefile about the following two rules
1998-09-25 17:50:02 +02:00
pl_gram.h: pl_gram.c ;
pl_gram.c: gram.y
ifdef BISON
$(BISON) -d $(BISONFLAGS) -o $@ $<
else
@$(missing) bison $< $@
endif
1998-09-25 17:50:02 +02:00
distprep: pl_gram.h pl_gram.c
# pl_gram.c and pl_gram.h are in the distribution tarball,
# so they are not cleaned here.
clean distclean: clean-lib
rm -f $(OBJS)
maintainer-clean: clean
rm -f pl_gram.c pl_gram.h