|
|
1.1 root 1: #
2: # $Id: Makefile.top,v 5.2 90/06/23 22:21:07 jsp Rel $
3: #
4: # Copyright (c) 1989 Jan-Simon Pendry
5: # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
6: # Copyright (c) 1989 The Regents of the University of California.
7: # All rights reserved.
8: #
9: # This code is derived from software contributed to Berkeley by
10: # Jan-Simon Pendry at Imperial College, London.
11: #
12: # Redistribution and use in source and binary forms are permitted provided
13: # that: (1) source distributions retain this entire copyright notice and
14: # comment, and (2) distributions including binaries display the following
15: # acknowledgement: ``This product includes software developed by the
16: # University of California, Berkeley and its contributors'' in the
17: # documentation or other materials provided with the distribution and in
18: # all advertising materials mentioning features or use of this software.
19: # Neither the name of the University nor the names of its contributors may
20: # be used to endorse or promote products derived from this software without
21: # specific prior written permission.
22: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
23: # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
24: # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
25: #
26: # @(#)Makefile.top 5.1 (Berkeley) 6/29/90
27: #
28:
29: # -------- Users may care to over ride these values --------
30: VER = ${REL}
31: SHELL = /bin/sh
32:
33: # Machine architecture
34: ARCH = `PATH=$${PATH}:. /bin/sh ../config/arch`
35:
36: # O/S Name
37: OS = `PATH=$${PATH}:. /bin/sh ../config/os-type`
38:
39: # version of make
40: MAKE = make
41: MKCOM = -f ../Makefile.com -f ../Makefile.mods -f ../${PROG}/Makefile.${PROG} -f ../Makefile.build
42: MKARGS = -f Makefile.com -f Makefile.mods -f ${PROG}/Makefile.${PROG} -f Makefile.build
43:
44: # -------- You should leave the rest alone! --------
45:
46: OS_SUPPORTED = acis43 aix3 aux bsd44 concentrix fpx4 hlh42 hpux pyrOSx riscix sos3 sos4 u2_2 u3_0 umax43 utx32 xinu43
47: CHECK_OS = \
48: case " ${OS_SUPPORTED} " in *" $${OS} "*) ;; \
49: *) case "$${OS}" in unknown);; *) echo "Unknown OS '$${OS}'";; esac; \
50: echo "OS should be one of ${OS_SUPPORTED}"; \
51: exit 1;; \
52: esac
53:
54: #
55: # "all" and "install" work in the architecture specific sub-directory.
56: # The other make rules work in the source directory.
57: #
58: make-all: all
59:
60: all clean count install lint amd amq mk-amd-map: FRC
61: @CF=config OS="${OS}" ARCH="${ARCH}" MKARGS="${MKCOM}"; \
62: ${CHECK_OS}; \
63: case "`echo ../$${CF}/M?kefile.config`" in \
64: ../$${CF}/Makefile.config) MKARGS="$${MKARGS} -f ../$${CF}/Makefile.config";; \
65: esac; \
66: case "`echo ../$${CF}/M?kefile.$${OS}`" in \
67: ../$${CF}/Makefile.$${OS}) MKARGS="$${MKARGS} -f ../$${CF}/Makefile.$${OS}";; \
68: esac; \
69: case "`echo ../$${CF}/M?kefile.local`" in \
70: ../$${CF}/Makefile.local) MKARGS="$${MKARGS} -f ../$${CF}/Makefile.local";; \
71: esac; \
72: case "`echo ../$${CF}/M?kefile.local.$${OS}`" in \
73: ../$${CF}/Makefile.local.$${OS}) MKARGS="$${MKARGS} -f ../$${CF}/Makefile.local.$${OS}";; \
74: esac; \
75: case "`echo ../A.$${ARCH}?$${OS}`" in ../A.$${ARCH}_$${OS});; *) mkdir ../A.$${ARCH}_$${OS}; esac; \
76: echo cd ../A.$${ARCH}_$${OS}; \
77: cd ../A.$${ARCH}_$${OS}; \
78: echo $(MAKE) $${MKARGS} ARCH=$${ARCH} OS=$${OS} $@; \
79: $(MAKE) $${MKARGS} ARCH=$${ARCH} OS=$${OS} $@
80:
81: co diffs release count: FRC
82: $(MAKE) ${MKARGS} ${MFLAGS} $@ OS=undef NAME=${NAME} REL=${REL} "VER=${VER}"
83:
84: pat print tarfile sharfile filelist: FRC
85: @$(MAKE) ${MKARGS} ${MFLAGS} $@ OS=undef
86:
87: doc:
88: @$(MAKE) ${MKCOM} ${MFLAGS} $@
89:
90: FRC:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.