summaryrefslogtreecommitdiff
path: root/src/backend/port/Makefile.in
diff options
context:
space:
mode:
authorMarc G. Fournier1997-02-05 21:27:04 +0000
committerMarc G. Fournier1997-02-05 21:27:04 +0000
commitb78a3de9a167ce1b0b53112b6c34b6d4b9bb6b2e (patch)
treea3ac539492f7fbfada06b130a814b36fad7f5a36 /src/backend/port/Makefile.in
parent4001a8c7d35c601544a325403ea2545a28b4b4e2 (diff)
Get in there...
Diffstat (limited to 'src/backend/port/Makefile.in')
-rw-r--r--src/backend/port/Makefile.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/backend/port/Makefile.in b/src/backend/port/Makefile.in
new file mode 100644
index 00000000000..9c0e9975c32
--- /dev/null
+++ b/src/backend/port/Makefile.in
@@ -0,0 +1,59 @@
+#-------------------------------------------------------------------------
+#
+# 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
+# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.1 1997/02/05 21:27:04 scrappy Exp $
+#
+#-------------------------------------------------------------------------
+
+include ../../Makefile.global
+
+ifndef PORTNAME
+.DEFAULT all:
+ @echo "Error: Must invoke make with PORTNAME= argument."
+ @false
+else
+
+OBJS = $(PORTNAME)/SUBSYS.o @INET_ATON@
+
+all: submake SUBSYS.o
+
+SUBSYS.o: $(OBJS)
+ $(LD) -r -o SUBSYS.o $(OBJS)
+
+.PHONY: submake clean dep
+
+submake:
+ $(MAKE) -C $(PORTNAME) SUBSYS.o
+
+clean:
+ rm -f $(OBJS)
+ $(MAKE) -C $(PORTNAME) clean
+
+depend dep:
+ $(CC) -MM $(INCLUDE_OPT) *.c >depend
+ $(MAKE) -C $(PORTNAME) $@
+
+ifeq (depend,$(wildcard depend))
+include depend
+endif
+
+endif
+