Annotation of coherent/b/STREAMS/conf/template.mak, revision 1.1

1.1     ! root        1: # Template for kernel build makefile.
        !             2: # Below, %C -> compile rules, %l -> link files, %b = "before" files,
        !             3: # %B -> "before" rules, %a = "after" files, %A -> "after" rules,
        !             4: # %r -> clean files and %% -> %.
        !             5: 
        !             6: PREFLAGS = 
        !             7: POSTFLAGS = $(TARGET)
        !             8: 
        !             9: DRVOBJS = obj/conf.o %l
        !            10: 
        !            11: all: pre $(TARGET) post
        !            12: 
        !            13: pre: %b
        !            14:        for i in $<; do if [ -x $$i ]; then $$i $(PREFLAGS); fi; done
        !            15: 
        !            16: $(TARGET): $(K386LIB)/k0.o $(DRVOBJS) $(K386LIB)/k386.a
        !            17:        ld -K -o $(TARGET) -e stext $(K386LIB)/k0.o $(DRVOBJS) \
        !            18:                        $(K386LIB)/k386.a
        !            19: 
        !            20: post: %a
        !            21:        for i in $<; do if [ -x $$i ]; then $$i $(POSTFLAGS); fi; done
        !            22: 
        !            23: obj/conf.o : conf.c conf.h
        !            24:        $(CC) $(CFLAGS) -o obj/conf.o -c conf.c
        !            25: 
        !            26: conf.h: mtune stune
        !            27:        echo confpath=$(CONFPATH)
        !            28:        $(CONFPATH)/bin/devadm -t
        !            29:        if [ "obj/*" ] ; then rm -f obj/* ; else true ; fi
        !            30: 
        !            31: conf.c: mdevice sdevice
        !            32:        @echo "You need to run \"make\" in response to a configuration change"
        !            33:        exit 1
        !            34: 
        !            35: %A%B%C
        !            36: 
        !            37: clean:
        !            38:        rm conf.c conf.h
        !            39:        if [ "%r" ] ; then rm -f %r ; else true ; fi
        !            40: 

unix.superglobalmegacorp.com

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