mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Make src/backend/port/*.c file location dependent only on configure.in.
This commit is contained in:
@ -1,18 +1,19 @@
|
||||
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.5 2001/09/06 10:49:29 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.6 2002/07/18 03:59:49 momjian Exp $
|
||||
|
||||
subdir = contrib/pg_controldata
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
PROGRAM = pg_controldata
|
||||
OBJS = pg_controldata.o pg_crc.o $(SNPRINTF)
|
||||
OBJS = pg_controldata.o pg_crc.o $(notdir $(SNPRINTF))
|
||||
|
||||
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
|
||||
ifdef SNPRINTF
|
||||
$(basename $(notdir $(SNPRINTF))).c: $(basename $(SNPRINTF)).c
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
endif
|
||||
|
||||
EXTRA_CLEAN = pg_crc.c snprintf.c
|
||||
|
||||
|
@ -1,18 +1,19 @@
|
||||
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.3 2001/09/06 10:49:30 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.4 2002/07/18 03:59:49 momjian Exp $
|
||||
|
||||
subdir = contrib/pg_resetxlog
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
PROGRAM = pg_resetxlog
|
||||
OBJS = pg_resetxlog.o pg_crc.o $(SNPRINTF)
|
||||
OBJS = pg_resetxlog.o pg_crc.o $(notdir $(SNPRINTF))
|
||||
|
||||
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
|
||||
ifdef SNPRINTF
|
||||
$(basename $(notdir $(SNPRINTF))).c: $(basename $(SNPRINTF)).c
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
endif
|
||||
|
||||
EXTRA_CLEAN = pg_crc.c snprintf.c
|
||||
|
||||
|
Reference in New Issue
Block a user