checkpoint before pmake
[unix-history] / usr / src / lib / libcompat / Makefile
CommitLineData
63bef2b5
KB
1#
2# Copyright (c) 1989 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 5.1 (Berkeley) %G%
18
19# All library objects contain sccsid strings by default; they may be
20# excluded as a space-saving measure. To produce a library that does
21# not contain these strings, remove -DLIBC_SCCS and -DSYSLIBC_SCCS
22# from DEFS below. To remove these strings from just the system call
23# stubs, remove -DSYSLIBC_SCCS from DEFS below.
24#DEFS=
25DEFS="-DLIBC_SCCS -DSYSLIBC_SCCS"
26
27SUBDIR= 4.1 4.3
28TAGSFILE=tags
29
30all: ${SUBDIR}
31
32${SUBDIR}: FRC
33 cd $@; make ${MFLAGS} DEFS=${DEFS}
34
35clean:
36 for i in ${SUBDIR}; \
37 do (cd $$i; make ${MFLAGS} clean); done
38 rm -rf libcompat.a libcompat_p.a library profiled
39
40cleandir: clean
41 for i in ${SUBDIR}; \
42 do (cd $$i; make ${MFLAGS} cleandir); done
43
44depend tags:
45 for i in ${SUBDIR}; \
46 do (cd $$i; make ${MFLAGS} DEFS=${DEFS} $@); done
47
48install: tags
49 rm -rf library profiled
50 mkdir library profiled
51 for i in ${SUBDIR}; \
52 do (cd $$i; make ${MFLAGS} DEFS=${DEFS} $@); done
53 ls library/*.o | sort -t/ +1 > t1
54 ar cr libcompat.a `lorder \`cat t1\` | tsort` csu/${MACHINE}/${DFLMON}
55 ls profiled/*.o | sort -t/ +1 > t1
56 ar cr libcompat_p.a `lorder \`cat t1\` | tsort` csu/${MACHINE}/${DFLMON}
57 rm -rf t1 library profiled
58 install -o bin -g bin -m 644 libcompat.a ${DESTDIR}/usr/lib
59 ranlib ${DESTDIR}/lib/libcompat.a
60 install -o bin -g bin -m 644 libcompat_p.a ${DESTDIR}/usr/lib
61 ranlib ${DESTDIR}/usr/lib/libcompat_p.a
62
63FRC: