Annotation of 43BSD/contrib/mh/conf/makefiles/config, revision 1.1.1.1

1.1       root        1: ##############################################################################
                      2: #    Instructions to Make, for compilation of MH modules
                      3: #
                      4: #      @(MHWARNING)
                      5: ##############################################################################
                      6: 
                      7: OPTIONS        =       @(MHOPTIONS)
                      8: LDOPTIONS=     @(LDOPTIONS)
                      9: 
                     10: CC     =       cc
                     11: @BEGIN: OPTIM
                     12: CFLAGS =       -O   $(OPTIONS)
                     13: @END: OPTIM
                     14: @BEGIN: DEBUG
                     15: CFLAGS =            $(OPTIONS)
                     16: @END: DEBUG
                     17: LDFLAGS        =       $(LDOPTIONS)
                     18: LIBES  =
                     19: LINT   =       lint
                     20: LFLAGS =       -bhu $(OPTIONS)
                     21: LLIBS  =
                     22: 
                     23: 
                     24: ##############################################################################
                     25: #      Generate object file for MH configuration
                     26: ##############################################################################
                     27: 
                     28: CFILES =       config.c
                     29: OFILES =       config.o
                     30: 
                     31: all:           $(OFILES)
                     32: 
                     33: lint:;         $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
                     34: 
                     35: 
                     36: ##############################################################################
                     37: #      Miscellaneous tasks
                     38: ##############################################################################
                     39: 
                     40: distribution:   clean
                     41:                -rm -f config.c
                     42: 
                     43: clean:         unclean
                     44:                -rm -f *.o
                     45: 
                     46: unclean:;      -rm -f _* :* core eddep makedep
                     47: 
                     48: 
                     49: ##############################################################################
                     50: #      Dependencies
                     51: ##############################################################################
                     52: 
                     53: MODULES        =       $(CFILES)
                     54: 
                     55: depend:;       for m in $(MODULES); do ( \
                     56:                    i=`basename $$m .c`; \
                     57:                    echo $$i.o: $$i.c >> makedep; \
                     58:                    grep '^#[   ]*include' $$i.c | \
                     59:                        sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
                     60:                            -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
                     61:                            -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
                     62:                        >> makedep \
                     63:                ); done
                     64:                echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
                     65:                echo '$$r makedep' >> eddep
                     66:                echo 'w' >> eddep
                     67:                cp Makefile _Makefile
                     68:                ed - Makefile < eddep
                     69:                rm eddep makedep
                     70:                echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                     71:                echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                     72: 
                     73: # DO NOT DELETE THIS LINE
                     74: # DEPENDENCIES START HERE
                     75: config.o: config.c
                     76: config.o: ../h/mh.h
                     77: #config.o: /usr/include/pwd.h
                     78: #config.o: /usr/include/stdio.h
                     79: # DEPENDENCIES MUST END AT END OF FILE
                     80: # 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.