Annotation of 43BSD/contrib/mh/zotnet/mts/Makefile, revision 1.1.1.1

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