Annotation of 43BSD/contrib/mh/conf/makefiles/zotnet/mts, revision 1.1.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 lock client
                     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: mts:           mts.o 
                     60: 
                     61: l-mts:;                $(LINT) $(LFLAGS) mts.c $(LLIBS)
                     62: 
                     63: 
                     64: ##############################################################################
                     65: # lock
                     66: ##############################################################################
                     67: 
                     68: lock:          lock.o 
                     69: 
                     70: l-lock:;       $(LINT) $(LFLAGS) lock.c $(LLIBS)
                     71: 
                     72: 
                     73: ##############################################################################
                     74: # client
                     75: ##############################################################################
                     76: 
                     77: client:                client.o 
                     78: 
                     79: l-client:;     $(LINT) $(LFLAGS) client.c $(LLIBS)
                     80: 
                     81: 
                     82: ##############################################################################
                     83: # mtstailor
                     84: ##############################################################################
                     85: 
                     86: inst-mtstailor:        $(ETCDIR)/mtstailor
                     87: 
                     88: $(ETCDIR)/mtstailor:   mtstailor
                     89:                -$(REMOVE) $@ zmtstailor
                     90:                cp mtstailor $@
                     91:                -@chmod $(FILPROT) $@
                     92:                -@ls -l $@
                     93:                -@echo ""
                     94: 
                     95: 
                     96: ##############################################################################
                     97: #      Miscellaneous tasks
                     98: ##############################################################################
                     99: 
                    100: distribution:   clean
                    101:                -rm -f mts.c mtstailor
                    102: 
                    103: clean:         unclean
                    104:                -rm -f x* *.o
                    105: 
                    106: unclean:;      -rm -f z* _* :* core eddep makedep MAKEMTS
                    107: 
                    108: 
                    109: ##############################################################################
                    110: #      Dependencies
                    111: ##############################################################################
                    112: 
                    113: MODULES        =       mts lock client
                    114: 
                    115: depend:;       for m in $(MODULES); do ( \
                    116:                    i=`basename $$m .c`; \
                    117:                    echo $$i.o: $$i.c >> makedep; \
                    118:                    grep '^#[   ]*include' $$i.c | \
                    119:                        sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
                    120:                            -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
                    121:                            -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
                    122:                        >> makedep \
                    123:                ); done
                    124:                echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
                    125:                echo '$$r makedep' >> eddep
                    126:                echo 'w' >> eddep
                    127:                cp Makefile _Makefile
                    128:                ed - Makefile < eddep
                    129:                rm eddep makedep
                    130:                echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                    131:                echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                    132: 
                    133: # DO NOT DELETE THIS LINE
                    134: # DEPENDENCIES START HERE
                    135: mts.o: mts.c
                    136: mts.o: ../../h/strings.h
                    137: #mts.o: /usr/include/ctype.h
                    138: #mts.o: /usr/include/stdio.h
                    139: mts.o: mts.h
                    140: #mts.o: /usr/include/netdb.h
                    141: #mts.o: /usr/include/whoami.h
                    142: #mts.o: /usr/include/sys/utsname.h
                    143: #mts.o: /usr/include/pwd.h
                    144: #mts.o: /usr/include/fcntl.h
                    145: lock.o: lock.c
                    146: lock.o: ../../h/strings.h
                    147: #lock.o: /usr/include/stdio.h
                    148: lock.o: mts.h
                    149: #lock.o: /usr/include/sys/types.h
                    150: #lock.o: /usr/include/sys/stat.h
                    151: #lock.o: /usr/include/sys/file.h
                    152: #lock.o: /usr/include/signal.h
                    153: client.o: client.c
                    154: client.o: ../../h/strings.h
                    155: #client.o: /usr/include/stdio.h
                    156: client.o: mts.h
                    157: #client.o: /usr/include/errno.h
                    158: #client.o: /usr/include/sys/types.h
                    159: #client.o: /usr/include/sys/socket.h
                    160: #client.o: /usr/include/netinet/in.h
                    161: #client.o: /usr/include/netdb.h
                    162: #client.o: /usr/include/arpa/inet.h
                    163: # DEPENDENCIES MUST END AT END OF FILE
                    164: # 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.