mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
#
|
|
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.4 2001/04/03 19:06:19 tgl Exp $
|
|
#
|
|
|
|
subdir = contrib/pg_controldata
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
OBJS = pg_controldata.o pg_crc.o $(SNPRINTF)
|
|
|
|
all: pg_controldata
|
|
|
|
pg_controldata: $(OBJS)
|
|
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
|
|
|
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
# this only gets done if configure finds system doesn't have snprintf()
|
|
snprintf.c: $(top_srcdir)/src/backend/port/snprintf.c
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
install: all installdirs
|
|
$(INSTALL_PROGRAM) pg_controldata$(X) $(bindir)
|
|
$(INSTALL_DATA) README.pg_controldata $(docdir)/contrib
|
|
|
|
installdirs:
|
|
$(mkinstalldirs) $(bindir) $(docdir)/contrib
|
|
|
|
uninstall:
|
|
rm -f $(bindir)/pg_controldata$(X) $(docdir)/contrib/README.pg_controldata
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f pg_controldata$(X) $(OBJS) pg_crc.c snprintf.c
|
|
|
|
depend dep:
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|