1 #-------------------------------------------------------------------------
3 # Makefile for src/fe_utils
5 # This makefile generates a static library, libpgfeutils.a,
6 # for use by client applications
8 # Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
9 # Portions Copyright (c) 1994, Regents of the University of California
12 # src/fe_utils/Makefile
14 #-------------------------------------------------------------------------
18 include $(top_builddir
)/src
/Makefile.global
20 override CPPFLAGS
:= -DFRONTEND
-I
$(libpq_srcdir
) $(CPPFLAGS
)
39 libpgfeutils.a
: $(OBJS
)
43 psqlscan.c
: FLEXFLAGS
= -Cfe
-p
-p
44 psqlscan.c
: FLEX_NO_BACKUP
=yes
45 psqlscan.c
: FLEX_FIX_WARNING
=yes
49 # libpgfeutils could be useful to contrib, so install it
50 install: all installdirs
51 $(INSTALL_STLIB
) libpgfeutils.a
'$(DESTDIR)$(libdir)/libpgfeutils.a'
54 $(MKDIR_P
) '$(DESTDIR)$(libdir)'
57 rm -f
'$(DESTDIR)$(libdir)/libpgfeutils.a'
60 rm -f libpgfeutils.a
$(OBJS
) lex.backup
62 # psqlscan.c is supposed to be in the distribution tarball,
63 # so do not clean it in the clean/distclean rules
64 maintainer-clean
: distclean