|
|
1.1 root 1: # @(#)Makefile 4.7 (Berkeley) 2/3/83
2:
3: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
4: DESTDIR =
5: CFLAGS= -O
6:
7: OBJS= closedir.o opendir.o readdir.o seekdir.o telldir.o
8: DIST= README Makefile ndir.h closedir.c opendir.c readdir.c \
9: seekdir.c telldir.c directory.3s
10:
11: .c.o:
12: ${CC} ${CFLAGS} -I. -c $*.c
13: -${LD} -x -r $*.o
14: mv a.out $*.o
15:
16: libndir.a: ${OBJS}
17: rm -f libndir.a
18: ar cru libndir.a `lorder ${OBJS} | tsort`
19: ranlib libndir.a
20:
21: install: libndir.a
22: cp ndir.h ${DESTDIR}/usr/include/ndir.h
23: cp libndir.a ${DESTDIR}/usr/lib/libndir.a
24: ranlib ${DESTDIR}/usr/lib/libndir.a
25: cp directory.3s ${DESTDIR}/usr/man/man3/directory.3s
26:
27: clean:
28: rm -f libndir.a ${OBJS}
29:
30: cleansrc:
31: rm -f *.[ch] *.3s README Makefile
32: dist: ${DIST}
33: echo "#!/bin/csh" >dist
34: echo "# Run this file as shell script" >> dist
35: echo "mkdir ndir" >> dist
36: echo "chdir ndir" >> dist
37: for i in ${DIST}; do ( \
38: echo "echo extracting $$i" >> dist; \
39: echo "cat > $$i <<E*O*F" >> dist; \
40: sed -e 's/\\/&&/g' -e 's/\$$/\\$$/g' $$i >> dist; \
41: echo 'E*O*F' >> dist); done
42: chmod 775 dist
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.