| 1 |
#------------------------------------------------------------------------- |
| 2 |
# |
| 3 |
# Makefile for src/bin/pg_config |
| 4 |
# |
| 5 |
# Copyright (c) 1998-2025, PostgreSQL Global Development Group |
| 6 |
# |
| 7 |
# src/bin/pg_config/Makefile |
| 8 |
# |
| 9 |
#------------------------------------------------------------------------- |
| 10 |
|
| 11 |
PGFILEDESC = "pg_config - report configuration information" |
| 12 |
PGAPPICON=win32 |
| 13 |
|
| 14 |
subdir = src/bin/pg_config |
| 15 |
top_builddir = ../../.. |
| 16 |
include $(top_builddir)/src/Makefile.global |
| 17 |
|
| 18 |
OBJS = \ |
| 19 |
$(WIN32RES) \ |
| 20 |
pg_config.o |
| 21 |
|
| 22 |
all: pg_config |
| 23 |
|
| 24 |
pg_config: $(OBJS) | submake-libpgport |
| 25 |
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X) |
| 26 |
|
| 27 |
install: all installdirs |
| 28 |
$(INSTALL_SCRIPT) pg_config$(X) '$(DESTDIR)$(bindir)/pg_config$(X)' |
| 29 |
|
| 30 |
installdirs: |
| 31 |
$(MKDIR_P) '$(DESTDIR)$(bindir)' |
| 32 |
|
| 33 |
uninstall: |
| 34 |
rm -f '$(DESTDIR)$(bindir)/pg_config$(X)' |
| 35 |
|
| 36 |
clean distclean: |
| 37 |
rm -f pg_config$(X) $(OBJS) |
| 38 |
rm -rf tmp_check |
| 39 |
|
| 40 |
check: |
| 41 |
$(prove_check) |
| 42 |
|
| 43 |
installcheck: |
| 44 |
$(prove_installcheck) |