|
|
1.1 ! root 1: ############################################################################## ! 2: # Instructions to Make, for compilation of ZOT UIP/utility processes ! 3: # ! 4: # @(MHWARNING) ! 5: ############################################################################## ! 6: ! 7: # The following entries were inserted during MH configuration ! 8: OPTIONS = @(MHOPTIONS) -I.. ! 9: ! 10: CC = cc ! 11: @BEGIN: OPTIM ! 12: CFLAGS = -O $(OPTIONS) ! 13: @END: OPTIM ! 14: @BEGIN: DEBUG ! 15: CFLAGS = $(OPTIONS) ! 16: @END: DEBUG ! 17: LINT = lint ! 18: LFLAGS = -bhu $(OPTIONS) ! 19: LLIBS = ! 20: ! 21: ! 22: ###################################################################### ! 23: # Here it is... ! 24: ###################################################################### ! 25: ! 26: all: getbbent ! 27: ! 28: lint: l-getbbent ! 29: ! 30: install: inst-all clean ! 31: ! 32: inst-all:; ! 33: ! 34: tar:; ! 35: ! 36: uninstall:; ! 37: ! 38: ! 39: ###################################################################### ! 40: # getbbent ! 41: ###################################################################### ! 42: ! 43: getbbent: getbbent.o ! 44: ! 45: l-getbbent:; $(LINT) $(LFLAGS) getbbent.c $(LLIBS) ! 46: ! 47: ! 48: ############################################################################## ! 49: # Miscellaneous tasks ! 50: ############################################################################## ! 51: ! 52: distribution: clean ! 53: ! 54: clean: unclean ! 55: -rm -f *.o ! 56: ! 57: unclean:; -rm -f _* :* core eddep makedep ! 58: ! 59: ! 60: ############################################################################## ! 61: # Dependencies ! 62: ############################################################################## ! 63: ! 64: MODULES = getbbent ! 65: depend:; for m in $(MODULES); do ( \ ! 66: i=`basename $$m .c`; \ ! 67: echo $$i.o: $$i.c >> makedep; \ ! 68: grep '^#[ ]*include' $$i.c | \ ! 69: sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \ ! 70: -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \ ! 71: -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \ ! 72: >> makedep \ ! 73: ); done ! 74: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep ! 75: echo '$$r makedep' >> eddep ! 76: echo 'w' >> eddep ! 77: cp Makefile _Makefile ! 78: ed - Makefile < eddep ! 79: rm eddep makedep ! 80: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 81: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 82: ! 83: # DO NOT DELETE THIS LINE ! 84: # DEPENDENCIES START HERE ! 85: getbbent.o: getbbent.c ! 86: getbbent.o: bboards.h ! 87: getbbent.o: ../../h/strings.h ! 88: #getbbent.o: /usr/include/ctype.h ! 89: #getbbent.o: /usr/include/pwd.h ! 90: #getbbent.o: /usr/include/grp.h ! 91: #getbbent.o: /usr/include/stdio.h ! 92: #getbbent.o: /usr/include/sys/types.h ! 93: #getbbent.o: /usr/include/sys/stat.h ! 94: # DEPENDENCIES MUST END AT END OF FILE ! 95: # IF YOU PUT STUFF HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.