|
|
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.o ! 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: l-getbbent:; $(LINT) $(LFLAGS) getbbent.c $(LLIBS) ! 44: ! 45: ! 46: ############################################################################## ! 47: # Miscellaneous tasks ! 48: ############################################################################## ! 49: ! 50: distribution: clean ! 51: ! 52: clean: unclean ! 53: -rm -f *.o ! 54: ! 55: unclean:; -rm -f _* :* core eddep makedep ! 56: ! 57: ! 58: ############################################################################## ! 59: # Dependencies ! 60: ############################################################################## ! 61: ! 62: MODULES = getbbent ! 63: depend:; for m in $(MODULES); do ( \ ! 64: i=`basename $$m .c`; \ ! 65: echo $$i.o: $$i.c >> makedep; \ ! 66: grep '^#[ ]*include' $$i.c | \ ! 67: sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \ ! 68: -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \ ! 69: -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \ ! 70: >> makedep \ ! 71: ); done ! 72: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep ! 73: echo '$$r makedep' >> eddep ! 74: echo 'w' >> eddep ! 75: cp Makefile _Makefile ! 76: ed - Makefile < eddep ! 77: rm eddep makedep ! 78: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 79: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 80: ! 81: # DO NOT DELETE THIS LINE ! 82: # DEPENDENCIES START HERE ! 83: getbbent.o: getbbent.c ! 84: getbbent.o: bboards.h ! 85: getbbent.o: ../../h/strings.h ! 86: #getbbent.o: /usr/include/ctype.h ! 87: #getbbent.o: /usr/include/pwd.h ! 88: #getbbent.o: /usr/include/grp.h ! 89: #getbbent.o: /usr/include/stdio.h ! 90: #getbbent.o: /usr/include/sys/types.h ! 91: #getbbent.o: /usr/include/sys/stat.h ! 92: # DEPENDENCIES MUST END AT END OF FILE ! 93: # 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.