Annotation of 43BSDReno/contrib/mh/conf/makefiles/zotnet/mts, revision 1.1

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: BINDIR =       $(DESTDIR)@(MHBINPATH)
        !             9: ETCDIR =       $(DESTDIR)@(MHETCPATH)
        !            10: OPTIONS        =       @(MHOPTIONS) -I..
        !            11: LDOPTIONS=     @(LDOPTIONS)
        !            12: LDOPTLIB=      @(LDOPTLIB)
        !            13: CHOWN  =       @(MHCHOWNPATH)
        !            14: REMOVE =       @(MHREMOVE)
        !            15: 
        !            16: CC     =       @(CC)
        !            17: @BEGIN: OPTIM
        !            18: CFLAGS  =      -O    $(OPTIONS)
        !            19: @END: OPTIM
        !            20: @BEGIN: DEBUG
        !            21: CFLAGS  =            $(OPTIONS)
        !            22: @END: DEBUG
        !            23: LINT   =       lint
        !            24: LFLAGS =       -bhu $(OPTIONS)
        !            25: LDFLAGS        =       $(LDOPTIONS)
        !            26: LLIBS  =
        !            27: LIBES  =
        !            28: LDLIBS =       $(LIBES) $(LDOPTLIB)
        !            29: FILPROT        =       0644
        !            30: PGMPROT        =       0755
        !            31: 
        !            32: 
        !            33: ######################################################################
        !            34: #      Here it is...
        !            35: ######################################################################
        !            36: 
        !            37: all:           mts.o lock.o client.o
        !            38: 
        !            39: lint:          l-mts l-lock l-client
        !            40: 
        !            41: install:       inst-all clean
        !            42: 
        !            43: inst-all:      inst-mtstailor
        !            44: 
        !            45: tar:;          touch mtstailor
        !            46:                ${MAKE} -n inst-all > MAKEMTS
        !            47:                chmod +x MAKEMTS
        !            48:                tar $(TFLAGS) MAKEMTS mtstailor
        !            49:                rm -f MAKEMTS
        !            50: 
        !            51: uninstall:;
        !            52:                -cd $(ETCDIR); rm -f mtstailor
        !            53: 
        !            54: 
        !            55: ##############################################################################
        !            56: # mts
        !            57: ##############################################################################
        !            58: 
        !            59: l-mts:;                $(LINT) $(LFLAGS) mts.c $(LLIBS)
        !            60: 
        !            61: 
        !            62: ##############################################################################
        !            63: # lock
        !            64: ##############################################################################
        !            65: 
        !            66: l-lock:;       $(LINT) $(LFLAGS) lock.c $(LLIBS)
        !            67: 
        !            68: 
        !            69: ##############################################################################
        !            70: # client
        !            71: ##############################################################################
        !            72: 
        !            73: l-client:;     $(LINT) $(LFLAGS) client.c $(LLIBS)
        !            74: 
        !            75: 
        !            76: ##############################################################################
        !            77: # mtstailor
        !            78: ##############################################################################
        !            79: 
        !            80: inst-mtstailor:        $(ETCDIR)/mtstailor
        !            81: 
        !            82: $(ETCDIR)/mtstailor:   mtstailor
        !            83:                -$(REMOVE) $@ zmtstailor
        !            84:                cp mtstailor $@
        !            85:                -@chmod $(FILPROT) $@
        !            86:                -@ls -l $@
        !            87:                -@echo ""
        !            88: 
        !            89: 
        !            90: ##############################################################################
        !            91: #      Miscellaneous tasks
        !            92: ##############################################################################
        !            93: 
        !            94: distribution:   clean
        !            95:                -rm -f mts.c mtstailor
        !            96: 
        !            97: clean:         unclean
        !            98:                -rm -f x* *.o
        !            99: 
        !           100: unclean:;      -rm -f z* _* :* core eddep makedep MAKEMTS
        !           101: 
        !           102: 
        !           103: ##############################################################################
        !           104: #      Dependencies
        !           105: ##############################################################################
        !           106: 
        !           107: MODULES        =       mts lock client
        !           108: 
        !           109: depend:;       for m in $(MODULES); do ( \
        !           110:                    i=`basename $$m .c`; \
        !           111:                    echo $$i.o: $$i.c >> makedep; \
        !           112:                    grep '^#[   ]*include' $$i.c | \
        !           113:                        sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
        !           114:                            -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
        !           115:                            -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
        !           116:                        >> makedep \
        !           117:                ); done
        !           118:                echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
        !           119:                echo '$$r makedep' >> eddep
        !           120:                echo 'w' >> eddep
        !           121:                cp Makefile _Makefile
        !           122:                ed - Makefile < eddep
        !           123:                rm eddep makedep
        !           124:                echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
        !           125:                echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
        !           126: 
        !           127: # DO NOT DELETE THIS LINE
        !           128: # DEPENDENCIES START HERE
        !           129: mts.o: mts.c
        !           130: mts.o: ../../h/strings.h
        !           131: #mts.o: /usr/include/ctype.h
        !           132: #mts.o: /usr/include/stdio.h
        !           133: mts.o: mts.h
        !           134: #mts.o: /usr/include/netdb.h
        !           135: #mts.o: /usr/include/whoami.h
        !           136: #mts.o: /usr/include/sys/utsname.h
        !           137: #mts.o: /usr/include/pwd.h
        !           138: #mts.o: /usr/include/fcntl.h
        !           139: lock.o: lock.c
        !           140: lock.o: ../../h/strings.h
        !           141: #lock.o: /usr/include/stdio.h
        !           142: lock.o: mts.h
        !           143: #lock.o: /usr/include/sys/types.h
        !           144: #lock.o: /usr/include/sys/stat.h
        !           145: #lock.o: /usr/include/sys/file.h
        !           146: #lock.o: /usr/include/signal.h
        !           147: client.o: client.c
        !           148: client.o: ../../h/strings.h
        !           149: #client.o: /usr/include/stdio.h
        !           150: client.o: mts.h
        !           151: #client.o: /usr/include/errno.h
        !           152: #client.o: /usr/include/sys/types.h
        !           153: #client.o: /usr/include/sys/socket.h
        !           154: #client.o: /usr/include/netinet/in.h
        !           155: #client.o: /usr/include/netdb.h
        !           156: #client.o: /usr/include/arpa/inet.h
        !           157: # DEPENDENCIES MUST END AT END OF FILE
        !           158: # IF YOU PUT STUFF HERE IT WILL GO AWAY

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.