Annotation of 43BSDReno/contrib/mh/conf/makefiles/support/bboards, revision 1.1

1.1     ! root        1: ##############################################################################
        !             2: #    Instructions to Make, for BBoards support 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: BBDIR  =       @(BBHOME)
        !            14: BBETC  =       $(BBDIR)/etc
        !            15: CHOWN  =       @(MHCHOWNPATH)
        !            16: REMOVE =       @(MHREMOVE)
        !            17: BBUID  =       bboards
        !            18: @BEGIN: BBOARDS
        !            19: ALL    =       bbaka bbexp bbtar
        !            20: INST-ALL=      inst-bboards inst-bbaka inst-bbexp inst-bbtar \
        !            21:                inst-daily inst-weekly inst-cshell inst-profile \
        !            22:                inst-makebboards
        !            23: TALL   =       BBoards xbbaka xbbexp xbbtar bboards.daily bboards.weekly \
        !            24:                MakeBBoards cshrc mh_profile
        !            25: @END: BBOARDS
        !            26: 
        !            27: CC     =       @(CC)
        !            28: @BEGIN: OPTIM
        !            29: CFLAGS  =      -O  $(OPTIONS)
        !            30: @END: OPTIM
        !            31: @BEGIN: DEBUG
        !            32: CFLAGS  =          $(OPTIONS)
        !            33: @END: DEBUG
        !            34: LDFLAGS        =       $(LDOPTIONS)
        !            35: LIBES1 =       ../../zotnet/libzot.a
        !            36: LIBES2 =       ../../config/config.o ../../sbr/libmh.a $(LIBES1)
        !            37: LDLIBS1        =       $(LIBES1) $(LDOPTLIB)
        !            38: LDLIBS2        =       $(LIBES2) $(LDOPTLIB)
        !            39: 
        !            40: LINT   =       lint
        !            41: LFLAGS =       -bhu $(OPTIONS)
        !            42: LLIBS1 =       ../../zotnet/llib-lzotnet
        !            43: LLIBS2 =       ../../sbr/llib-lmh $(LLIBS1)
        !            44: 
        !            45: 
        !            46: ######################################################################
        !            47: #      Here it is...
        !            48: ######################################################################
        !            49: 
        !            50: all:           $(ALL)
        !            51: 
        !            52: lint:          l-bbaka l-bbexp l-bbtar
        !            53: 
        !            54: install:       inst-all clean
        !            55: 
        !            56: inst-all:      $(INST-ALL)
        !            57: 
        !            58: tar:           $(ALL)
        !            59: @BEGIN: BBOARDS
        !            60:                touch $(TALL)
        !            61:                ${MAKE} -n inst-all > MAKEBB
        !            62:                chmod +x MAKEBB
        !            63:                tar $(TFLAGS) MAKEBB $(TALL)
        !            64:                rm -f MAKEBB
        !            65: @END: BBOARDS
        !            66: 
        !            67: uninstall:;
        !            68: @BEGIN: BBOARDS
        !            69:                -cd (BBDIR); \
        !            70:                    rm -f BBoards .cshrc .mh_profile
        !            71:                -cd (ETCDIR); \
        !            72:                    rm -f bbaka bbexp bbtar bboards.daily \
        !            73:                          bboards.weekly Makefile context
        !            74: @END: BBOARDS
        !            75: 
        !            76: 
        !            77: ######################################################################
        !            78: #      Generate BBoards Support files and processes
        !            79: ######################################################################
        !            80: 
        !            81: inst-bboards:  $(BBDIR)/BBoards
        !            82: 
        !            83: $(BBDIR)/BBoards: BBoards
        !            84:                -$(REMOVE) $@ zBBoards
        !            85:                cp BBoards $@
        !            86:                -$(CHOWN) $(BBUID) $@
        !            87:                -@ls -l $@
        !            88:                -@echo ""
        !            89: 
        !            90: 
        !            91: ######################################################################
        !            92: # bbaka
        !            93: ######################################################################
        !            94: 
        !            95: inst-bbaka:    $(BBETC)/bbaka
        !            96: 
        !            97: $(BBETC)/bbaka: xbbaka
        !            98:                -$(REMOVE) $@ zbbaka
        !            99:                cp xbbaka $@
        !           100:                -$(CHOWN) $(BBUID) $@
        !           101:                -@ls -l $@
        !           102:                -@echo ""
        !           103: 
        !           104: bbaka:         xbbaka
        !           105: 
        !           106: xbbaka:                bbaka.o $(LIBES1)
        !           107:                $(CC) $(LDFLAGS) -o $@ bbaka.o $(LDLIBS1)
        !           108: 
        !           109: l-bbaka:;      $(LINT) $(LFLAGS) bbaka.c $(LLIBS1)
        !           110: 
        !           111: 
        !           112: ######################################################################
        !           113: # bbexp
        !           114: ######################################################################
        !           115: 
        !           116: inst-bbexp:    $(BBETC)/bbexp
        !           117: 
        !           118: $(BBETC)/bbexp: xbbexp
        !           119:                -$(REMOVE) $@ zbbexp
        !           120:                cp xbbexp $@
        !           121:                -$(CHOWN) $(BBUID) $@
        !           122:                -@ls -l $@
        !           123:                -@echo ""
        !           124: 
        !           125: bbexp:         xbbexp
        !           126: 
        !           127: xbbexp:                bbexp.o ../../uip/dropsbr.o $(LIBES2)
        !           128:                $(CC) $(LDFLAGS) -o $@ bbexp.o ../../uip/dropsbr.o $(LDLIBS2)
        !           129: 
        !           130: l-bbexp:;      $(LINT) $(LFLAGS) bbexp.c ../../uip/dropsbr.c $(LLIBS2)
        !           131: 
        !           132: 
        !           133: ######################################################################
        !           134: # bbtar
        !           135: ######################################################################
        !           136: 
        !           137: inst-bbtar:    $(BBETC)/bbtar
        !           138: 
        !           139: $(BBETC)/bbtar: xbbtar
        !           140:                -$(REMOVE) $@ zbbtar
        !           141:                cp xbbtar $@
        !           142:                -$(CHOWN) $(BBUID) $@
        !           143:                -@ls -l $@
        !           144:                -@echo ""
        !           145: 
        !           146: bbtar:         xbbtar
        !           147: 
        !           148: xbbtar:                bbtar.o $(LIBES1)
        !           149:                $(CC) $(LDFLAGS) -o $@ bbtar.o $(LDLIBS1)
        !           150: 
        !           151: l-bbtar:;      $(LINT) $(LFLAGS) bbtar.c $(LLIBS1)
        !           152: 
        !           153: 
        !           154: ######################################################################
        !           155: # bboards.daily
        !           156: ######################################################################
        !           157: 
        !           158: inst-daily:    $(BBETC)/bboards.daily
        !           159: 
        !           160: $(BBETC)/bboards.daily: bboards.daily
        !           161:                -$(REMOVE) $@ zbboards.daily
        !           162:                cp bboards.daily $@
        !           163:                -$(CHOWN) $(BBUID) $@
        !           164:                -@chmod +x $@
        !           165:                -@ls -l $@
        !           166:                -@echo ""
        !           167: 
        !           168: 
        !           169: ######################################################################
        !           170: # bboards.weekly
        !           171: ######################################################################
        !           172: 
        !           173: inst-weekly:   $(BBETC)/bboards.weekly
        !           174: 
        !           175: $(BBETC)/bboards.weekly: bboards.weekly
        !           176:                -$(REMOVE) $@ zbboards.weekly
        !           177:                cp bboards.weekly $@
        !           178:                -$(CHOWN) $(BBUID) $@
        !           179:                -@chmod +x $@
        !           180:                -@ls -l $@
        !           181:                -@echo ""
        !           182: 
        !           183: 
        !           184: ######################################################################
        !           185: # MakeBBoards
        !           186: ######################################################################
        !           187: 
        !           188: inst-makebboards:      $(BBETC)/Makefile
        !           189: 
        !           190: $(BBETC)/Makefile: MakeBBoards
        !           191:                -$(REMOVE) $@ zMakeBBoards
        !           192:                cp MakeBBoards $@
        !           193:                -$(CHOWN) $(BBUID) $@
        !           194:                -@ls -l $@
        !           195:                -@echo ""
        !           196: 
        !           197: 
        !           198: ######################################################################
        !           199: # .cshrc
        !           200: ######################################################################
        !           201: 
        !           202: inst-cshell:   $(BBDIR)/.cshrc
        !           203: 
        !           204: $(BBDIR)/.cshrc: cshrc
        !           205:                -$(REMOVE) $@ z.cshrc
        !           206:                cp cshrc $@
        !           207:                -$(CHOWN) $(BBUID) $@
        !           208:                -@ls -l $@
        !           209:                -@echo ""
        !           210: 
        !           211: 
        !           212: ######################################################################
        !           213: # .mh_profile
        !           214: ######################################################################
        !           215: 
        !           216: inst-profile:  $(BBDIR)/.mh_profile
        !           217: 
        !           218: $(BBDIR)/.mh_profile: mh_profile
        !           219:                -$(REMOVE) $@ z.mh_profile
        !           220:                cp mh_profile $@
        !           221:                -$(CHOWN) $(BBUID) $@
        !           222:                -@ls -l $@
        !           223:                -@touch $(BBETC)/context
        !           224:                -$(CHOWN) $(BBUID) $(BBETC)/context
        !           225:                -@echo ""
        !           226: 
        !           227: 
        !           228: ##############################################################################
        !           229: #      Miscellaneous tasks
        !           230: ##############################################################################
        !           231: 
        !           232: distribution:  clean
        !           233:                -rm -f bboards.daily bboards.weekly crontab MakeBBoards
        !           234: 
        !           235: clean:         unclean
        !           236:                -rm -f x* *.o
        !           237: 
        !           238: unclean:;      -rm -f z* _* :* core eddep makedep MAKEBB
        !           239: 
        !           240: 
        !           241: ##############################################################################
        !           242: #      Dependencies
        !           243: ##############################################################################
        !           244: 
        !           245: MODULES        =       bbaka bbexp bbtar
        !           246: 
        !           247: depend:;       for m in $(MODULES); do ( \
        !           248:                    i=`basename $$m .c`; \
        !           249:                    echo $$i.o: $$i.c >> makedep; \
        !           250:                    grep '^#[   ]*include' $$i.c | \
        !           251:                        sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
        !           252:                            -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
        !           253:                            -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
        !           254:                        >> makedep \
        !           255:                ); done
        !           256:                echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
        !           257:                echo '$$r makedep' >> eddep
        !           258:                echo 'w' >> eddep
        !           259:                cp Makefile _Makefile
        !           260:                ed - Makefile < eddep
        !           261:                rm eddep makedep
        !           262:                echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
        !           263:                echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
        !           264: 
        !           265: # DO NOT DELETE THIS LINE
        !           266: # DEPENDENCIES START HERE
        !           267: bbaka.o: bbaka.c
        !           268: bbaka.o: ../../h/strings.h
        !           269: bbaka.o: ../../zotnet/bboards.h
        !           270: #bbaka.o: /usr/include/stdio.h
        !           271: bbaka.o: ../../zotnet/mts.h
        !           272: bbexp.o: bbexp.c
        !           273: bbexp.o: ../../h/mh.h
        !           274: bbexp.o: ../../h/dropsbr.h
        !           275: bbexp.o: ../../zotnet/bboards.h
        !           276: #bbexp.o: /usr/include/pwd.h
        !           277: #bbexp.o: /usr/include/signal.h
        !           278: #bbexp.o: /usr/include/stdio.h
        !           279: #bbexp.o: /usr/include/sys/types.h
        !           280: #bbexp.o: /usr/include/sys/stat.h
        !           281: #bbexp.o: /usr/include/stdio.h
        !           282: bbexp.o: ../../zotnet/bboards.h
        !           283: bbtar.o: bbtar.c
        !           284: #bbtar.o: /usr/include/pwd.h
        !           285: #bbtar.o: /usr/include/stdio.h
        !           286: #bbtar.o: /usr/include/sys/types.h
        !           287: #bbtar.o: /usr/include/sys/stat.h
        !           288: bbtar.o: ../../zotnet/bboards.h
        !           289: # DEPENDENCIES MUST END AT END OF FILE
        !           290: # 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.