BSD 4_3_Tahoe release
[unix-history] / usr / src / lib / libc / gen / gen.vax / Makefile
CommitLineData
ca67e7b4
C
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 4.20 (Berkeley) 6/27/88
18#
19DEFS= -DLIBC_SCCS
20FLAGS= -I../../vax ${DEFS}
21CFLAGS= -O ${FLAGS}
22SRCS= _setjmp.s abs.s alloca.s atof.s bcmp.s bcopy.s bzero.s fabs.s \
23 ffs.s frexp.s index.s insque.s ldexp.s modf.s nargs.s remque.s \
24 rindex.s setjmp.s strcat.s strcmp.s strcpy.s strlen.s strncat.s \
25 strncmp.s strncpy.s udiv.s urem.s
26OBJS= _setjmp.o abs.o alloca.o atof.o bcmp.o bcopy.o bzero.o fabs.o \
27 ffs.o frexp.o index.o insque.o ldexp.o modf.o nargs.o remque.o \
28 rindex.o setjmp.o strcat.o strcmp.o strcpy.o strlen.o strncat.o \
29 strncmp.o strncpy.o udiv.o urem.o
30TAGSFILE=tags
31
32.s.o:
33 @/lib/cpp -E ${FLAGS} -DPROF $*.s | ${AS} -o $*.o
34 @-ld -X -o profiled/$*.o -r $*.o
35 /lib/cpp -E ${FLAGS} $*.s | ${AS} -o $*.o
36 @-ld -x -r $*.o
37 @mv a.out $*.o
38
39all: ${OBJS}
40
41link: ${OBJS}
42 (cd ../../library; rm -f ${OBJS})
43 (cd ../../profiled; rm -f ${OBJS})
44 ln ${OBJS} ../../library
45 (cd profiled; ln ${OBJS} ../../../profiled)
46
47tags:
48 (P=`pwd`; \
49 egrep "^ENTRY(.*)|^SYSCALL(.*)" ${SRCS} | sed \
50"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 $$P/\1 /^\2(\3\4$$/;" \
51 >> ${TAGSFILE})
52
53clean:
54 rm -f *.o profiled/* a.out core ${TAGSFILE}
55
56depend:
57 mkdep ${CFLAGS} ${SRCS}
58
59# DO NOT DELETE THIS LINE -- mkdep uses it.
60# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
61
62_setjmp.o: _setjmp.s
63_setjmp.o:DEFS.h
64abs.o: abs.s
65abs.o:DEFS.h
66alloca.o: alloca.s
67alloca.o:DEFS.h
68atof.o: atof.s
69atof.o:DEFS.h
70bcmp.o: bcmp.s
71bcmp.o:DEFS.h
72bcopy.o: bcopy.s
73bcopy.o:DEFS.h
74bzero.o: bzero.s
75bzero.o:DEFS.h
76fabs.o: fabs.s
77fabs.o:DEFS.h
78ffs.o: ffs.s
79ffs.o:DEFS.h
80frexp.o: frexp.s
81frexp.o:DEFS.h
82index.o: index.s
83index.o:DEFS.h
84insque.o: insque.s
85insque.o:DEFS.h
86ldexp.o: ldexp.s
87ldexp.o:DEFS.h
88ldexp.o: /usr/include/errno.h
89modf.o: modf.s
90modf.o:DEFS.h
91nargs.o: nargs.s
92nargs.o:DEFS.h
93remque.o: remque.s
94remque.o:DEFS.h
95rindex.o: rindex.s
96rindex.o:DEFS.h
97setjmp.o: setjmp.s
98setjmp.o:DEFS.h
99strcat.o: strcat.s
100strcat.o:DEFS.h
101strcmp.o: strcmp.s
102strcmp.o:DEFS.h
103strcpy.o: strcpy.s
104strcpy.o:DEFS.h
105strlen.o: strlen.s
106strlen.o:DEFS.h
107strncat.o: strncat.s
108strncat.o:DEFS.h
109strncmp.o: strncmp.s
110strncmp.o:DEFS.h
111strncpy.o: strncpy.s
112strncpy.o:DEFS.h
113udiv.o: udiv.s
114udiv.o:DEFS.h
115urem.o: urem.s
116urem.o:DEFS.h
117
118# IF YOU PUT ANYTHING HERE IT WILL GO AWAY