|
|
1.1 root 1: #
2: # Copyright (c) 1988 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16: #
17: # @(#)Makefile 5.6 (Berkeley) 7/9/88
18: #
19: DEFS= -DLIBC_SCCS
20: CFLAGS= -O ${DEFS}
21: CSRCS= gmon.c mon.c
22: ASRCS= crt0.s mcrt0.s
23: OBJS= crt0.o mcrt0.o gcrt0.o
24: TAGSFILE=tags
25:
26: .s.o:
27: ${AS} -o $*.o $*.s
28: ld -x -r $*.o
29: mv a.out $*.o
30:
31: all link: ${OBJS}
32:
33: mcrt0.o: moncrt0.o mon.o
34: ld -x -r -o $@ moncrt0.o mon.o
35:
36: gcrt0.o: moncrt0.o gmon.o
37: ld -x -r -o $@ moncrt0.o gmon.o
38:
39: moncrt0.o: mcrt0.s
40: ${AS} -o $@ mcrt0.s
41:
42: mon.o: mon.c
43: ${CC} -S ${CFLAGS} mon.c
44: ex - mon.s < mon.ex
45: ${AS} -o $@ mon.s
46:
47: gmon.o: gmon.c
48: ${CC} -S ${CFLAGS} gmon.c
49: ex - gmon.s < mon.ex
50: ${AS} -o $@ gmon.s
51:
52: install:
53: install -o bin -g bin -m 444 crt0.o ${DESTDIR}/lib/crt0.o
54: install -o bin -g bin -m 444 mcrt0.o ${DESTDIR}/lib/mcrt0.o
55: install -o bin -g bin -m 444 gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o
56:
57: clean:
58: rm -f *.o *mon.s a.out core ${TAGSFILE}
59:
60: tags:
61: cwd=`pwd`; \
62: for i in ${CSRCS}; do \
63: ctags -a -f ${TAGSFILE} $$cwd/$$i; \
64: done
65: (P=`pwd`; \
66: egrep "^ENTRY(.*)|^SYSCALL(.*)" ${ASRCS} | sed \
67: "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 $$P/\1 /^\2(\3\4$$/;" \
68: >> ${TAGSFILE})
69:
70: depend:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.