1997-02-05 22:27:04 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
|
|
|
# Makefile for the port-specific subsystem of the backend
|
|
|
|
#
|
|
|
|
# We have two different modes of operation: 1) put stuff specific to Port X
|
|
|
|
# in subdirectory X and have that subdirectory's make file make it all, and
|
|
|
|
# 2) use conditional statements in the present make file to include what's
|
|
|
|
# necessary for a specific port in our own output. (1) came first, but (2)
|
|
|
|
# is superior for many things, like when the same thing needs to be done for
|
|
|
|
# multiple ports and you don't want to duplicate files in multiple
|
|
|
|
# subdirectories. Much of the stuff done via Method 1 today should probably
|
|
|
|
# be converted to Method 2.
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1999-12-16 02:25:23 +01:00
|
|
|
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.20 1999/12/16 01:25:02 momjian Exp $
|
1997-02-05 22:27:04 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
1997-04-15 19:41:44 +02:00
|
|
|
SRCDIR=../..
|
1997-02-05 22:27:04 +01:00
|
|
|
include ../../Makefile.global
|
|
|
|
|
1998-04-06 02:32:26 +02:00
|
|
|
CFLAGS+= -I..
|
1997-12-20 01:11:13 +01:00
|
|
|
|
1997-12-30 05:08:55 +01:00
|
|
|
OBJS = dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@
|
1998-01-13 20:22:29 +01:00
|
|
|
OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @STRDUP@ @TAS@ @ISINF@
|
1998-08-01 21:30:29 +02:00
|
|
|
OBJS+= @STRTOL@ @STRTOUL@ @SNPRINTF@
|
1999-12-16 02:25:23 +01:00
|
|
|
ifeq ($(PORTNAME), qnx4)
|
|
|
|
OBJS += getrusage.o qnx4/SUBSYS.o
|
|
|
|
endif
|
1997-12-20 01:11:13 +01:00
|
|
|
all: SUBSYS.o
|
1997-02-05 22:27:04 +01:00
|
|
|
|
|
|
|
SUBSYS.o: $(OBJS)
|
1999-12-13 23:35:27 +01:00
|
|
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
1997-02-05 22:27:04 +01:00
|
|
|
|
1999-12-16 02:25:23 +01:00
|
|
|
qnx4/SUBSYS.o: qnx4.dir
|
|
|
|
|
|
|
|
qnx4.dir:
|
|
|
|
$(MAKE) -C qnx4 all
|
|
|
|
|
1997-12-20 01:11:13 +01:00
|
|
|
.PHONY: clean dep
|
1997-02-05 22:27:04 +01:00
|
|
|
|
1997-12-20 05:43:20 +01:00
|
|
|
distclean clean:
|
1997-02-28 11:57:47 +01:00
|
|
|
rm -f SUBSYS.o $(OBJS)
|
1997-02-05 22:27:04 +01:00
|
|
|
|
|
|
|
depend dep:
|
1998-04-06 02:32:26 +02:00
|
|
|
$(CC) -MM $(CFLAGS) *.c >depend
|
1997-02-05 22:27:04 +01:00
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|