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-2024, 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
)
42 ifeq ($(PORTNAME
), win32
)
43 override CPPFLAGS
+= -DFD_SETSIZE
=1024
48 libpgfeutils.a
: $(OBJS
)
52 psqlscan.c
: FLEXFLAGS
= -Cfe
-p
-p
53 psqlscan.c
: FLEX_NO_BACKUP
=yes
54 psqlscan.c
: FLEX_FIX_WARNING
=yes
56 # libpgfeutils could be useful to contrib, so install it
57 install: all installdirs
58 $(INSTALL_STLIB
) libpgfeutils.a
'$(DESTDIR)$(libdir)/libpgfeutils.a'
61 $(MKDIR_P
) '$(DESTDIR)$(libdir)'
64 rm -f
'$(DESTDIR)$(libdir)/libpgfeutils.a'
67 rm -f libpgfeutils.a
$(OBJS
) lex.backup