|
|
1.1 root 1: #
2: # Copyright (c) 1980 Regents of the University of California.
3: # All rights reserved. The Berkeley software License Agreement
4: # specifies the terms and conditions for redistribution.
5: #
6: # @(#)Makefile 5.5 (Berkeley) 9/6/85
7: #
8: SRCS= reset.c
9: OBJS= reset.o
10: CFLAGS= ${DEFS}
11: TAGSFILE=tags
12:
13: .c.o:
14: /lib/cpp -E ${CFLAGS} -DPROF $*.c | ${AS} -o $*.o
15: -ld -X -r $*.o
16: mv a.out profiled/$*.o
17: /lib/cpp -E ${CFLAGS} $*.c | ${AS} -o $*.o
18: -ld -x -r $*.o
19: mv a.out $*.o
20:
21: compat-4.1lib compat-4.1lib_p: ${OBJS}
22: @echo "building profiled compat-4.1"
23: @cd profiled; ar cru ../compat-4.1lib_p ${OBJS}
24: @echo "building normal compat-4.1"
25: @ar cru compat-4.1lib ${OBJS}
26:
27: tags:
28:
29: clean:
30: rm -f *.o profiled/*.o errs a.out core \
31: compat-4.1lib compat-4.1lib_p tags
32:
33: depend:
34: for i in ${SRCS}; do \
35: cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \
36: { if (rec != "") print rec; rec = $$0; prev = $$1; } \
37: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
38: else rec = rec " " $$2 } } \
39: END { print rec } ' >> makedep; done
40: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
41: echo '$$r makedep' >>eddep
42: echo 'w' >>eddep
43: cp Makefile Makefile.bak
44: ed - Makefile < eddep
45: rm eddep makedep
46: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
47: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
48: echo '# see make depend above' >> Makefile
49:
50: # DO NOT DELETE THIS LINE -- make depend uses it
51:
52: reset.o: reset.c ./DEFS.h
53: # DEPENDENCIES MUST END AT END OF FILE
54: # IF YOU PUT STUFF HERE IT WILL GO AWAY
55: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.