mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
Provide snprintf() if system hasn't got it.
This commit is contained in:
parent
7cdbc1e2ab
commit
5f5db804f5
@ -1,19 +1,23 @@
|
|||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.3 2001/03/13 01:17:40 tgl Exp $
|
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.4 2001/04/03 19:06:19 tgl Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
subdir = contrib/pg_controldata
|
subdir = contrib/pg_controldata
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
OBJS = pg_controldata.o pg_crc.o
|
OBJS = pg_controldata.o pg_crc.o $(SNPRINTF)
|
||||||
|
|
||||||
all: pg_controldata
|
all: pg_controldata
|
||||||
|
|
||||||
pg_controldata: $(OBJS)
|
pg_controldata: $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
||||||
|
|
||||||
pg_crc.c: $(top_builddir)/src/backend/utils/hash/pg_crc.c
|
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) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
@ -27,7 +31,7 @@ uninstall:
|
|||||||
rm -f $(bindir)/pg_controldata$(X) $(docdir)/contrib/README.pg_controldata
|
rm -f $(bindir)/pg_controldata$(X) $(docdir)/contrib/README.pg_controldata
|
||||||
|
|
||||||
clean distclean maintainer-clean:
|
clean distclean maintainer-clean:
|
||||||
rm -f pg_controldata$(X) $(OBJS) pg_crc.c
|
rm -f pg_controldata$(X) $(OBJS) pg_crc.c snprintf.c
|
||||||
|
|
||||||
depend dep:
|
depend dep:
|
||||||
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
||||||
|
@ -1,19 +1,23 @@
|
|||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.1 2001/03/14 00:57:43 tgl Exp $
|
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.2 2001/04/03 19:01:57 tgl Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
subdir = contrib/pg_resetxlog
|
subdir = contrib/pg_resetxlog
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
OBJS = pg_resetxlog.o pg_crc.o
|
OBJS = pg_resetxlog.o pg_crc.o $(SNPRINTF)
|
||||||
|
|
||||||
all: pg_resetxlog
|
all: pg_resetxlog
|
||||||
|
|
||||||
pg_resetxlog: $(OBJS)
|
pg_resetxlog: $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
||||||
|
|
||||||
pg_crc.c: $(top_builddir)/src/backend/utils/hash/pg_crc.c
|
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) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
@ -27,7 +31,7 @@ uninstall:
|
|||||||
rm -f $(bindir)/pg_resetxlog$(X) $(docdir)/contrib/README.pg_resetxlog
|
rm -f $(bindir)/pg_resetxlog$(X) $(docdir)/contrib/README.pg_resetxlog
|
||||||
|
|
||||||
clean distclean maintainer-clean:
|
clean distclean maintainer-clean:
|
||||||
rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c
|
rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c snprintf.c
|
||||||
|
|
||||||
depend dep:
|
depend dep:
|
||||||
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user