|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: NAME = include
26:
27: SUBDIRS = arpa protocols
28:
29: SOURCES = Makefile
30:
31: FASTCP = /usr/lib/fastcp
32: RM = /bin/rm
33: ifneq "" "$(wildcard /bin/mkdirs)"
34: MKDIRS = /bin/mkdirs
35: else
36: MKDIRS = /bin/mkdir -p
37: endif
38: ECHO = echo
39:
40: PUBLIC_HEADERS = \
41: a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h err.h \
42: fnmatch.h fstab.h fts.h glob.h grp.h kvm.h limits.h locale.h math.h \
43: memory.h mpool.h ndbm.h netdb.h nlist.h paths.h pwd.h ranlib.h regex.h \
44: regexp.h resolv.h rune.h runetype.h setjmp.h sgtty.h signal.h stab.h \
45: stddef.h stdio.h stdlib.h string.h strings.h struct.h sysexits.h \
46: tar.h time.h ttyent.h tzfile.h unistd.h utime.h utmp.h vis.h
47:
48: all::
49:
50: recurse::
51: @echo '====' make $(TARGET) for: $(SUBDIRS) '===='
52: @for i in ${SUBDIRS}; \
53: do \
54: echo == make $(TARGET) for $$i ==; \
55: (cd $$i; ${MAKE} $(TARGET) \
56: OBJROOT="$$ABSOROOT/$$i" \
57: SYMROOT="$$ABSSROOT/$$i" \
58: DSTROOT="$(DSTROOT)" \
59: SRCROOT="$(SRCROOT)/$$i" \
60: RC_CFLAGS="$(RC_CFLAGS)" \
61: RC_ARCHS="$(RC_ARCHS)" \
62: ARGON_PUBLIC_HEADER="$(ARGON_PUBLIC_HEADER)/$$i" \
63: ARGON_PRIVATE_HEADER="$(ARGON_PRIVATE_HEADER)/$$i" \
64: || exit 1); \
65: done
66: @echo '====' make $(TARGET) for $(SUBDIRS) done '===='
67:
68: installhdrs::
69: $(MKDIRS) $(ARGON_PUBLIC_HEADER)
70: @$(FASTCP) $(PUBLIC_HEADERS) $(ARGON_PUBLIC_HEADER)
71: @$(MAKE) recurse "TARGET = $@"
72:
73: install::
74:
75: installsrc::
76:
77: clean:
78: @(cd $(ARGON_PUBLIC_HEADER); $(RM) -f $(PUBLIC_HEADERS))
79: @$(MAKE) recurse "TARGET = $@"
80:
81: copy:: DEST
82: @$(MAKE) installsrc "SRCROOT = $(DEST)"
83:
84: $(DSTROOT):;$(MKDIRS) -m 755 -o root -g wheel $@
85:
86: $(SYMROOT):
87: @$(MKDIRS) $(SYMROOT)
88:
89: $(OBJROOT):
90: @$(MKDIRS) $(OBJROOT)
91:
92: SRCROOT DEST:
93: @if [ -n "${$@}" ]; then exit 0; \
94: else $(ECHO) Must define $@; exit 1; fi
95:
96:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.