1997-02-05 22:27:04 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
|
|
|
# Makefile for the port-specific subsystem of the backend
|
|
|
|
#
|
|
|
|
# You must invoke this make file with the PORTNAME variable set to the
|
|
|
|
# name of a port, i.e. the name of a subdirectory of the current directory.
|
|
|
|
# Example:
|
|
|
|
#
|
|
|
|
# make SUBSYS.o PORTNAME=linux
|
|
|
|
#
|
|
|
|
# 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
|
1997-04-15 19:41:44 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.4 1997/04/15 17:39:23 scrappy 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
|
|
|
|
|
|
|
|
ifndef PORTNAME
|
|
|
|
.DEFAULT all:
|
|
|
|
@echo "Error: Must invoke make with PORTNAME= argument."
|
|
|
|
@false
|
|
|
|
else
|
|
|
|
|
1997-03-19 03:37:42 +01:00
|
|
|
OBJS = $(PORTNAME)/SUBSYS.o @INET_ATON@ @STRERROR@
|
1997-02-05 22:27:04 +01:00
|
|
|
|
|
|
|
all: submake SUBSYS.o
|
|
|
|
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
|
|
$(LD) -r -o SUBSYS.o $(OBJS)
|
|
|
|
|
|
|
|
.PHONY: submake clean dep
|
|
|
|
|
|
|
|
submake:
|
|
|
|
$(MAKE) -C $(PORTNAME) SUBSYS.o
|
|
|
|
|
|
|
|
clean:
|
1997-02-28 11:57:47 +01:00
|
|
|
rm -f SUBSYS.o $(OBJS)
|
1997-02-05 22:27:04 +01:00
|
|
|
$(MAKE) -C $(PORTNAME) clean
|
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
|
|
|
$(MAKE) -C $(PORTNAME) $@
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|