From: Tom Lane Date: Mon, 4 Mar 2002 17:43:32 +0000 (+0000) Subject: Make port makefile slightly less crufty. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=2f58e8821d2b4150d4b56d5c2d457389228122c1;p=users%2Fbernd%2Fpostgres.git Make port makefile slightly less crufty. --- diff --git a/src/backend/port/Makefile.in b/src/backend/port/Makefile.in index 02bae74cff..9aebfc94bd 100644 --- a/src/backend/port/Makefile.in +++ b/src/backend/port/Makefile.in @@ -21,13 +21,14 @@ subdir = src/backend/port top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -OBJS = dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@ -OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @MEMCMP@ @STRCASECMP@ @TAS@ @ISINF@ -OBJS+= @STRTOL@ @STRTOUL@ @SNPRINTF@ +# Note: invoking a macro from Makefile.global is better than substituting +# here; ideally this file should not need to be generated by configure +# at all. +OBJS = dynloader.o $(INET_ATON) $(STRERROR) @MISSING_RANDOM@ @SRANDOM@ +OBJS+= @GETHOSTNAME@ @GETRUSAGE@ $(MEMCMP) @STRCASECMP@ @TAS@ @ISINF@ +OBJS+= @STRTOL@ $(STRTOUL) $(SNPRINTF) ifdef STRDUP OBJS += $(top_builddir)/src/utils/strdup.o -$(top_builddir)/src/utils/strdup.o: - $(MAKE) -C $(top_builddir)/src/utils strdup.o endif ifeq ($(PORTNAME), qnx4) OBJS += getrusage.o qnx4/SUBSYS.o @@ -44,6 +45,9 @@ all: SUBSYS.o SUBSYS.o: $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) +$(top_builddir)/src/utils/strdup.o: + $(MAKE) -C $(top_builddir)/src/utils strdup.o + qnx4/SUBSYS.o: qnx4.dir qnx4.dir: