Need to factor out strdup.o for separate treatment since it's in a
different directory. This makes dependency tracking work and copes with compilers that don't suport -c and -o together.
This commit is contained in:
parent
530dc73cd1
commit
c3fa600d8c
@ -13,7 +13,7 @@
|
|||||||
# be converted to Method 2.
|
# be converted to Method 2.
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.28 2000/12/11 00:49:54 tgl Exp $
|
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.29 2001/05/08 19:38:57 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -22,8 +22,11 @@ top_builddir = ../../..
|
|||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
OBJS = dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@
|
OBJS = dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@
|
||||||
OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @STRDUP@ @TAS@ @ISINF@
|
OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @TAS@ @ISINF@
|
||||||
OBJS+= @STRTOL@ @STRTOUL@ @SNPRINTF@
|
OBJS+= @STRTOL@ @STRTOUL@ @SNPRINTF@
|
||||||
|
ifdef STRDUP
|
||||||
|
OBJS += $(top_builddir)/src/utils/strdup.o
|
||||||
|
endif
|
||||||
ifeq ($(PORTNAME), qnx4)
|
ifeq ($(PORTNAME), qnx4)
|
||||||
OBJS += getrusage.o qnx4/SUBSYS.o
|
OBJS += getrusage.o qnx4/SUBSYS.o
|
||||||
endif
|
endif
|
||||||
@ -57,6 +60,10 @@ darwin.dir:
|
|||||||
tas.o: tas.s
|
tas.o: tas.s
|
||||||
$(CC) $(CFLAGS) -c $<
|
$(CC) $(CFLAGS) -c $<
|
||||||
|
|
||||||
|
$(top_builddir)/src/utils/strdup.o:
|
||||||
|
$(MAKE) -C $(top_builddir)/src/utils strdup.o
|
||||||
|
|
||||||
|
|
||||||
distclean clean:
|
distclean clean:
|
||||||
rm -f SUBSYS.o $(OBJS)
|
rm -f SUBSYS.o $(OBJS)
|
||||||
$(MAKE) -C beos clean
|
$(MAKE) -C beos clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user