Consistently use "superuser" instead of "super user"
[pgsql.git] / src / fe_utils / Makefile
blob456c441a33451b791df8ec309fcded61d66e349c
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
11 # IDENTIFICATION
12 # src/fe_utils/Makefile
14 #-------------------------------------------------------------------------
16 subdir = src/fe_utils
17 top_builddir = ../..
18 include $(top_builddir)/src/Makefile.global
20 override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
22 OBJS = \
23 archive.o \
24 cancel.o \
25 conditional.o \
26 connect_utils.o \
27 mbprint.o \
28 option_utils.o \
29 parallel_slot.o \
30 print.o \
31 psqlscan.o \
32 query_utils.o \
33 recovery_gen.o \
34 simple_list.o \
35 string_utils.o
37 all: libpgfeutils.a
39 libpgfeutils.a: $(OBJS)
40 rm -f $@
41 $(AR) $(AROPT) $@ $^
43 psqlscan.c: FLEXFLAGS = -Cfe -p -p
44 psqlscan.c: FLEX_NO_BACKUP=yes
45 psqlscan.c: FLEX_FIX_WARNING=yes
47 distprep: psqlscan.c
49 # libpgfeutils could be useful to contrib, so install it
50 install: all installdirs
51 $(INSTALL_STLIB) libpgfeutils.a '$(DESTDIR)$(libdir)/libpgfeutils.a'
53 installdirs:
54 $(MKDIR_P) '$(DESTDIR)$(libdir)'
56 uninstall:
57 rm -f '$(DESTDIR)$(libdir)/libpgfeutils.a'
59 clean distclean:
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
65 rm -f psqlscan.c