|
|
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.4 (Berkeley) 7/9/88
18: #
19:
20: DEFS= -DLIBC_SCCS
21: CFLAGS= -O ${DEFS}
22: SRCS= ecvt.c gcvt.c sibuf.c sobuf.c strout.c
23: OBJS= ecvt.o gcvt.o sibuf.o sobuf.o strout.o
24: TAGSFILE=tags
25:
26: .c.o:
27: @${CC} -p ${CFLAGS} -c $*.c
28: @-ld -X -o profiled/$*.o -r $*.o
29: ${CC} ${CFLAGS} -c $*.c
30: @-ld -x -r $*.o
31: @mv a.out $*.o
32:
33: all: ${OBJS}
34:
35: link: ${OBJS}
36: (cd ../library; rm -f ${OBJS})
37: (cd ../profiled; rm -f ${OBJS})
38: ln ${OBJS} ../library
39: (cd profiled; ln ${OBJS} ../../profiled)
40:
41: tags:
42: cwd=`pwd`; \
43: for i in ${SRCS}; do \
44: ctags -a -f ${TAGSFILE} $$cwd/$$i; \
45: done
46:
47: clean:
48: rm -f *.o profiled/* a.out core ${TAGSFILE}
49:
50: depend:
51: mkdep ${CFLAGS} ${SRCS}
52:
53: # DO NOT DELETE THIS LINE -- mkdep uses it.
54: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
55:
56: ecvt.o: ecvt.c
57: gcvt.o: gcvt.c
58: sibuf.o: sibuf.c /usr/include/stdio.h
59: sobuf.o: sobuf.c /usr/include/stdio.h
60: strout.o: strout.c /usr/include/stdio.h
61:
62: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.