makefile
来自「postgresql8.3.4源码,开源数据库」· 代码 · 共 92 行
TXT
92 行
#-------------------------------------------------------------------------## Makefile for the plpgsql shared object## $PostgreSQL: pgsql/src/pl/plpgsql/src/Makefile,v 1.31 2007/07/15 22:18:24 tgl Exp $##-------------------------------------------------------------------------subdir = src/pl/plpgsql/srctop_builddir = ../../../..include $(top_builddir)/src/Makefile.global# Shared library parametersNAME= plpgsqlSO_MAJOR_VERSION= 1SO_MINOR_VERSION= 0override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)SHLIB_LINK = $(filter -lintl, $(LIBS)) $(BE_DLLLIBS)rpath =OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.oall: all-lib# Shared library stuffinclude $(top_srcdir)/src/Makefile.shlib# In order to use Makefile.shlib, we allow it to build a static# library libplpgsql.a, which we just ignore, as well as a shared# library that it will insist on naming $(shlib). We don't want to# call it that when installed, however, so we ignore the install-shlib# rule and do this instead:install: installdirs allifeq ($(enable_shared), yes) $(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(pkglibdir)/plpgsql$(DLSUFFIX)'else @echo "*****"; \ echo "* PL/pgSQL was not installed due to lack of shared library support."; \ echo "*****"endifinstalldirs: $(mkinstalldirs) '$(DESTDIR)$(pkglibdir)'uninstall: rm -f '$(DESTDIR)$(pkglibdir)/plpgsql$(DLSUFFIX)'# 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: plpgsql.h $(srcdir)/pl.tab.h# pl_scan is compiled as part of pl_grampl_gram.o: $(srcdir)/pl_scan.c# See notes in src/backend/parser/Makefile about the following two rules$(srcdir)/pl_gram.c: $(srcdir)/pl.tab.h ;$(srcdir)/pl.tab.h: gram.yifdef YACC $(YACC) -d $(YFLAGS) $< mv -f y.tab.c $(srcdir)/pl_gram.c mv -f y.tab.h $(srcdir)/pl.tab.helse @$(missing) bison $< $@endif# Because we use %option case-insensitive, flex's results could vary# depending on what the compile-time locale setting is. Hence, force# it to see LC_CTYPE=C to ensure consistent build results.$(srcdir)/pl_scan.c: scan.lifdef FLEX LC_CTYPE=C $(FLEX) $(FLEXFLAGS) -o'$@' $<else @$(missing) flex $< $@endifdistprep: $(srcdir)/pl_scan.c $(srcdir)/pl.tab.h $(srcdir)/pl_gram.c# pl_gram.c, pl.tab.h, and pl_scan.c are in the distribution tarball,# so they are not cleaned here.clean distclean: clean-lib rm -f $(OBJS)# And the garbage that might have been left behind by partial build: @rm -f y.tab.h y.tab.c y.output lex.yy.cmaintainer-clean: clean rm -f $(srcdir)/pl_gram.c $(srcdir)/pl.tab.h $(srcdir)/pl_scan.c
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?