PostgreSQL
Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group; Portions Copyright (c) 1994, The Regents of the University of California
debian/copyright
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#------------------------------------------------------------------------- |
| 2 |
# |
| 3 |
# Makefile for src/fe_utils |
| 4 |
# |
| 5 |
# This makefile generates a static library, libpgfeutils.a, |
| 6 |
# for use by client applications |
| 7 |
# |
| 8 |
# Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group |
| 9 |
# Portions Copyright (c) 1994, Regents of the University of California |
| 10 |
# |
| 11 |
# IDENTIFICATION |
| 12 |
# src/fe_utils/Makefile |
| 13 |
# |
| 14 |
#------------------------------------------------------------------------- |
| 15 |
|
| 16 |
subdir = src/fe_utils |
| 17 |
top_builddir = ../.. |
| 18 |
include $(top_builddir)/src/Makefile.global |
| 19 |
|
| 20 |
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS) |
| 21 |
|
| 22 |
OBJS = \ |
| 23 |
archive.o \ |
| 24 |
astreamer_file.o \ |
| 25 |
astreamer_gzip.o \ |
| 26 |
astreamer_lz4.o \ |
| 27 |
astreamer_tar.o \ |
| 28 |
astreamer_zstd.o \ |
| 29 |
cancel.o \ |
| 30 |
conditional.o \ |
| 31 |
connect_utils.o \ |
| 32 |
mbprint.o \ |
| 33 |
option_utils.o \ |
| 34 |
parallel_slot.o \ |
| 35 |
print.o \ |
| 36 |
psqlscan.o \ |
| 37 |
query_utils.o \ |
| 38 |
recovery_gen.o \ |
| 39 |
simple_list.o \ |
| 40 |
string_utils.o |
| 41 |
|
| 42 |
ifeq ($(PORTNAME), win32) |
| 43 |
override CPPFLAGS += -DFD_SETSIZE=1024 |
| 44 |
endif |
| 45 |
|
| 46 |
all: libpgfeutils.a |
| 47 |
|
| 48 |
libpgfeutils.a: $(OBJS) |
| 49 |
rm -f $@ |
| 50 |
$(AR) $(AROPT) $@ $^ |
| 51 |
|
| 52 |
psqlscan.c: FLEXFLAGS = -Cfe -p -p |
| 53 |
psqlscan.c: FLEX_NO_BACKUP=yes |
| 54 |
|
| 55 |
# libpgfeutils could be useful to contrib, so install it |
| 56 |
install: all installdirs |
| 57 |
$(INSTALL_STLIB) libpgfeutils.a '$(DESTDIR)$(pkglibdir)/libpgfeutils.a' |
| 58 |
|
| 59 |
installdirs: |
| 60 |
$(MKDIR_P) '$(DESTDIR)$(pkglibdir)' |
| 61 |
|
| 62 |
uninstall: |
| 63 |
rm -f '$(DESTDIR)$(pkglibdir)/libpgfeutils.a' |
| 64 |
|
| 65 |
clean distclean: |
| 66 |
rm -f libpgfeutils.a $(OBJS) lex.backup |
| 67 |
rm -f psqlscan.c |