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-2023, 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
)
37 ifeq ($(PORTNAME
), win32
)
38 override CPPFLAGS
+= -DFD_SETSIZE
=1024
43 libpgfeutils.a
: $(OBJS
)
47 psqlscan.c
: FLEXFLAGS
= -Cfe
-p
-p
48 psqlscan.c
: FLEX_NO_BACKUP
=yes
49 psqlscan.c
: FLEX_FIX_WARNING
=yes
53 # libpgfeutils could be useful to contrib, so install it
54 install: all installdirs
55 $(INSTALL_STLIB
) libpgfeutils.a
'$(DESTDIR)$(libdir)/libpgfeutils.a'
58 $(MKDIR_P
) '$(DESTDIR)$(libdir)'
61 rm -f
'$(DESTDIR)$(libdir)/libpgfeutils.a'
64 rm -f libpgfeutils.a
$(OBJS
) lex.backup
66 # psqlscan.c is supposed to be in the distribution tarball,
67 # so do not clean it in the clean/distclean rules
68 maintainer-clean
: distclean