|
|
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) ! 9: ! 10: CC = cc ! 11: @BEGIN: OPTIM ! 12: CCOPT = -O ! 13: @END: OPTIM ! 14: @BEGIN: DEBUG ! 15: CCOPT = ! 16: @END: DEBUG ! 17: CFLAGS = $(CCOPT) $(OPTIONS) -I. ! 18: LFLAGS = -bhu $(OPTIONS) -I. ! 19: ! 20: LIB = libzot.a ! 21: LLIB = llib-lzotnet ! 22: ! 23: OFILES = mts/mts.o mts/lock.o mts/client.o mf/mf.o \ ! 24: @BEGIN: MHMTS ! 25: mf/mmuu.o mf/uumm.o \ ! 26: @END: MHMTS ! 27: bboards/getbbent.o \ ! 28: tws/dtime.o tws/dtimep.o tws/lexstring.o ! 29: ! 30: MAKE = make DESTDIR=$(DESTDIR) $(MFLAGS) ! 31: SHELL = /bin/sh ! 32: ! 33: DIRS = mts bboards tws mf ! 34: ! 35: ! 36: @BEGIN: OPTIM ! 37: ############################################################################## ! 38: # Generation Rules ! 39: ############################################################################## ! 40: ! 41: .c.o:; $(CC) $(CFLAGS) -c $*.c ! 42: @BEGIN: NEWLOAD ! 43: @END: NEWLOAD ! 44: @BEGIN: OLDLOAD ! 45: cc -s -o $@ ! 46: @END: OLDLOAD ! 47: ! 48: ! 49: @END: OPTIM ! 50: ############################################################################## ! 51: # Generate ZOTnet subroutine library ! 52: ############################################################################## ! 53: ! 54: all: allaux $(LIB) ! 55: ! 56: $(LIB): $(OFILES) ! 57: @BEGIN: RANLIB ! 58: ar r $@ $(OFILES); ranlib $@ ! 59: @END: RANLIB ! 60: @BEGIN: LORDER ! 61: ar r $@ `lorder $(OFILES) | tsort` ! 62: @END: LORDER ! 63: -@ls -l $@ ! 64: -@echo "ZOTnet library built normally" ! 65: ! 66: allaux:; for d in $(DIRS); do (cd $$d; $(MAKE) all); done ! 67: ! 68: depend:; for d in $(DIRS); do (cd $$d; $(MAKE) depend); done ! 69: ! 70: lint:; for d in $(DIRS); do (cd $$d; $(MAKE) lint); done ! 71: ! 72: ! 73: ############################################################################## ! 74: # Installation ! 75: ############################################################################## ! 76: ! 77: install: inst-all clean ! 78: ! 79: inst-all:; for d in $(DIRS); do (cd $$d; $(MAKE) inst-all); done ! 80: ! 81: tar:; @for d in $(DIRS); \ ! 82: do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done ! 83: ! 84: uninstall:; for d in $(DIRS); do (cd $$d; $(MAKE) uninstall); done ! 85: ! 86: ! 87: ############################################################################## ! 88: # Miscellaneous tasks ! 89: ############################################################################## ! 90: ! 91: distribution:; -rm -f $(LIB) z$(LIB) _* :* ! 92: for d in $(DIRS); do (cd $$d; $(MAKE) distribution); done ! 93: ! 94: clean:; -rm -f $(LIB) z$(LIB) _* :* core ! 95: for d in $(DIRS); do (cd $$d; $(MAKE) clean); done ! 96: ! 97: unclean:; -rm -f z$(LIB) _* :* core ! 98: for d in $(DIRS); do (cd $$d; $(MAKE) unclean); done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.