|
|
1.1 ! root 1: DIRENT=/usr/include/dirent.h ! 2: SYSDIR=/usr/include/sys/dir.h ! 3: #DESTDIR=/usr/lib/ ! 4: ! 5: ! 6: OBJS=closedir.o opendir.o seekdir.o readdir.o rewinddir.o telldir.o \ ! 7: getdents.o ! 8: ! 9: CFLAGS = -O -DDBG -DUFS -DBIT_16 #-DDBG ! 10: LIBNDIR = libndir# ! 11: ! 12: all: $(LIBNDIR).a ! 13: @echo Installation complete. ! 14: @echo ! 15: ! 16: /usr/lib/$(LIBNDIR).a: $(LIBNDIR).a ! 17: cp $(LIBNDIR).a /usr/lib/$(LIBNDIR).a ! 18: chown bin $(DESTDIR)$(LIBNDIR).a ! 19: chgrp bin $(DESTDIR)$(LIBNDIR).a ! 20: chmod 644 $(DESTDIR)$(LIBNDIR).a ! 21: ! 22: $(LIBNDIR).a: $(OBJS) ! 23: ar rsv $(DESTDIR)$(LIBNDIR).a $(OBJS) ! 24: ! 25: closedir.o: closedir.c dirent.h sys.dirent.h ! 26: opendir.o: opendir.c dirent.h sys.dirent.h ! 27: readdir.o: readdir.c dirent.h sys.dirent.h ! 28: rewinddir.o: rewinddir.c dirent.h sys.dirent.h ! 29: seekdir.o: seekdir.c dirent.h sys.dirent.h ! 30: telldir.o: telldir.c dirent.h sys.dirent.h ! 31: ! 32: #setup: /usr/include/dirent.h /usr/include/sys/dirent.h ! 33: # @echo header files in place; ! 34: ! 35: #/usr/include/dirent.h: dirent.h ! 36: # cp dirent.h /usr/include/dirent.h ! 37: # chown bin /usr/include/dirent.h ! 38: # chgrp bin /usr/include/dirent.h ! 39: # chmod 644 /usr/include/dirent.h ! 40: ! 41: #/usr/include/sys/dirent.h: sys.dirent.h ! 42: # cp sys.dirent.h /usr/include/sys/dirent.h ! 43: # chown bin /usr/include/sys/dirent.h ! 44: # chgrp bin /usr/include/sys/dirent.h ! 45: # chmod 644 /usr/include/sys/dirent.h ! 46: ! 47: #install: setup ! 48: # mv $(LIBNDIR).a /usr/lib ! 49: # if test ! -f /usr/man/update-indx then mv Update-indx /usr/man fi ! 50: # cat man-indx >> /usr/man/user.index ! 51: # if test ! -d /usr/man/2 then mkdir /usr/man/2 fi ! 52: # if test ! -d /usr/man/3 then mkdir /usr/man/3 fi ! 53: # if test ! -d /usr/man/4 then mkdir /usr/man/4 fi ! 54: # nroff -man getdents.2 > /usr/man/2/getdents ! 55: # nroff -man directory.3c > /usr/man/3/directory ! 56: # nroff -man dirent.4 > /usr/man/4/dirent ! 57: # sh /usr/man/Update-indx ! 58: # ! 59: #clean: ! 60: # rm *.o *.a *.out tst core
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.