Commit | Line | Data |
---|---|---|
216a171f | 1 | # |
4ccb962c KB |
2 | # Copyright (c) 1988 Regents of the University of California. |
3 | # All rights reserved. | |
216a171f | 4 | # |
4ccb962c | 5 | # Redistribution and use in source and binary forms are permitted |
57a981eb KB |
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. | |
4ccb962c | 16 | # |
ca67e7b4 | 17 | # @(#)Makefile 5.2 (Berkeley) 6/27/88 |
21bdf70f | 18 | # |
c63549da | 19 | DEFS= -DLIBC_SCCS |
ca67e7b4 | 20 | FLAGS= -I../../vax ${DEFS} |
216a171f | 21 | CFLAGS= -O ${FLAGS} |
ca67e7b4 C |
22 | SRCS= strchr.s strrchr.s |
23 | OBJS= strchr.o strrchr.o | |
21bdf70f SL |
24 | TAGSFILE=tags |
25 | ||
26 | .s.o: | |
4ccb962c | 27 | @/lib/cpp -E ${FLAGS} -DPROF $*.s | ${AS} -o $*.o |
237d2d6a | 28 | @-ld -X -o profiled/$*.o -r $*.o |
6e82fd5a | 29 | /lib/cpp -E ${FLAGS} $*.s | ${AS} -o $*.o |
237d2d6a | 30 | @-ld -x -r $*.o |
4ccb962c KB |
31 | @mv a.out $*.o |
32 | ||
33 | all: ${OBJS} | |
21bdf70f | 34 | |
4ccb962c KB |
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) | |
21bdf70f SL |
40 | |
41 | tags: | |
ca67e7b4 C |
42 | (P=`pwd`; \ |
43 | egrep "^ENTRY(.*)|^SYSCALL(.*)" ${SRCS} | sed \ | |
44 | "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 $$P/\1 /^\2(\3\4$$/;" \ | |
45 | >> ${TAGSFILE}) | |
21bdf70f SL |
46 | |
47 | clean: | |
4ccb962c | 48 | rm -f *.o profiled/* a.out core ${TAGSFILE} |
21bdf70f | 49 | |
ca67e7b4 | 50 | depend: ${SRCS} |
216a171f | 51 | mkdep ${CFLAGS} ${SRCS} |
ca67e7b4 C |
52 | |
53 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
54 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
55 | ||
56 | strchr.o: strchr.s ../../vax/DEFS.h | |
57 | strrchr.o: strrchr.s ../../vax/DEFS.h | |
58 | ||
59 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |