Annotation of 43BSD/ucb/lisp/franz/68k/Makefile, revision 1.1

1.1     ! root        1: # 
        !             2: #$Header: Makefile,v 1.15 84/02/29 17:19:21 sklower Exp $
        !             3: #
        !             4: #$Locker:  $
        !             5: #
        !             6: #  Franz Lisp C coded kernel 
        !             7: #
        !             8: #-- Default Paths:
        !             9: #  see ../../ReadMe for a explaination of what LibDir and CopyTo mean
        !            10: #  D is the directory used for holding intermediate files during 
        !            11: #    compilation
        !            12: #-- Options:
        !            13: #  there is one compile time options which can be set in this file
        !            14: #  * do profiling (ala the unix prof(1) command)
        !            15: #
        !            16: #  The selection of this options is made below
        !            17: #  Other options can be selected by editing ../h/config.h or via
        !            18: #  ../../lispconf
        !            19: #
        !            20: LibDir = /usr/lib/lisp
        !            21: ObjDir = /usr/ucb
        !            22: CopyTo = /dev/null
        !            23: Liszt = liszt
        !            24: Lisp = lisp
        !            25: # if you change this you must recompile rlc.c 
        !            26: # (and change the value in ../Makefile)
        !            27: #
        !            28: HOLE=  2097152 
        !            29: 
        !            30: .DEFAULT: nlisp
        !            31: 
        !            32: MipSrc1= ../low.c ../lowaux.s
        !            33: MipSrc2= ../alloc.c ../data.c
        !            34: MipSrc3= ../rlc.c
        !            35: MipSrc4= ../lisp.c ../eval.c ../eval2.c ../inits.c ../io.c ../error.c \
        !            36:         ../sysat.c ../lam1.c ../lam2.c ../lam3.c ../lam4.c ../lam5.c\
        !            37:         ../lam6.c  ../lam7.c ../lam8.c ../lam9.c ../lamr.c ../lamp.c \
        !            38:         ../fex1.c ../fex2.c ../fex3.c ../fex4.c ../fexr.c\
        !            39:         ../fpipe.c \
        !            40:         ../subbig.c ../pbignum.c ../divbig.c \
        !            41:         ../ffasl.c ../fasl.c \
        !            42:         ../trace.c ../evalf.c ../frame.c ../lamgc.c
        !            43: 
        !            44: MipSrc = ${MipSrc1} ${MipSrc2} ${MipSrc3} ${MipSrc4}
        !            45: 
        !            46: MipObj1= ../lowaux.o ../low.o
        !            47: MipObj2= ../alloc.o ../data.o
        !            48: HoleMipObj2 = ../Salloc.o ../Sdata.o
        !            49: HoleMipObj3 = ../rlc.o
        !            50: MipObj4= ../lisp.o ../eval.o ../eval2.o ../inits.o ../io.o ../error.o \
        !            51:         ../sysat.o ../lam1.o ../lam2.o ../lam3.o ../lam4.o ../lam5.o\
        !            52:         ../lam6.o  ../lam7.o ../lam8.o ../lam9.o ../lamr.o ../lamp.o \
        !            53:         ../fex1.o ../fex2.o ../fex3.o ../fex4.o ../fexr.o\
        !            54:         ../fpipe.o \
        !            55:         ../subbig.o ../pbignum.o ../divbig.o \
        !            56:         ../ffasl.o ../fasl.o \
        !            57:         ../trace.o ../evalf.o ../frame.o ../lamgc.o
        !            58: 
        !            59: 
        !            60: # The order of loading of certain files is important.
        !            61: # lowaux.o must be first and low.o second.
        !            62: # 
        !            63: BottomObj = ${MipObj1}
        !            64: 
        !            65: # Different objects are required depending on whether there is to be
        !            66: # a hole between text and data space.
        !            67: #
        !            68: NoHoleObj = /lib/crt0.o ${MipObj2}
        !            69: HoleObj   = /lib/hcrt0.o ${HoleMipObj2} ${HoleMipObj3}
        !            70: 
        !            71: M68kASrc = callg.s dmlad.s ediv.s emul.s hack.s \
        !            72:        qfuncl.c
        !            73: M68kCSrc = 68k.c adbig.c calqhat.c dodiv.c dsmult.c \
        !            74:        exarith.c fixbits.c inewint.c \
        !            75:        mlsb.c mulbig.c nargs.c suncore.c
        !            76: M68kSrc = ${M68kCSrc} ${M68kASrc}
        !            77: 
        !            78: M68kObj = 68k.o adbig.o callg.o calqhat.o dmlad.o dodiv.o dsmult.o \
        !            79:        ediv.o emul.o exarith.o fixbits.o hack.o inewint.o \
        !            80:        mlsb.o mulbig.o nargs.o qfuncl.o
        !            81: 
        !            82: AllSrc = $(M68kSrc) Makefile first8.c fixregs.sed
        !            83: 
        !            84: CFLAGS = -O -I../h
        !            85: 
        !            86: #ifdef unisoft
        !            87: #CFLAGS = -I../h
        !            88: #endif
        !            89: 
        !            90: #ifdef sun
        !            91: Libs = -lcore
        !            92: OsObjs = suncore.o
        !            93: #endif
        !            94: 
        !            95: #ifdef sunII
        !            96: Libs = -lcore -lsunwindow -lpixrect
        !            97: #endif
        !            98: 
        !            99: #ifdef mc500
        !           100: #Libs = -lBSD
        !           101: #endif
        !           102: 
        !           103: #ifdef unisys3botch
        !           104: #N=
        !           105: #else
        !           106: N=-n
        !           107: #endif
        !           108: 
        !           109: # on non-ucb systems it might be more
        !           110: # polite to use temporary files rather than pipes
        !           111: #
        !           112: #ifdef unisoft
        !           113: #.SUFFIXES : .c.l.s
        !           114: #.s.o:
        !           115: #      ./first8.out < $< > $*.t; as -o $*.o $*.t; rm $*.t
        !           116: #else
        !           117: .SUFFIXES : .c.l
        !           118: #endif
        !           119: .c.o :
        !           120: #ifdef npinreg
        !           121: #      /lib/cpp -I../h $*.c | /lib/xcomp |\
        !           122: #      sed -f fixregs.sed > /tmp/x.s; as -o $*.o /tmp/x.s
        !           123: #else
        !           124:        cc -c $(CFLAGS) $*.c;\
        !           125:        mv `basename $*.o` x; mv x $*.o
        !           126: #endif
        !           127: 
        !           128: .l.o :
        !           129:        liszt $< > #resc
        !           130:        @echo liszt $< done
        !           131: 
        !           132: 
        !           133: ../rlc.o: ../rlc.c 
        !           134:        cc -c $(CFLAGS) -DHOLE=${HOLE} ../rlc.c 
        !           135:        mv rlc.o .. < /dev/null
        !           136: 
        !           137: ../Salloc.o: ../alloc.c
        !           138:        (echo "# define HOLE"; cat ../alloc.c) > Salloc.c;\
        !           139:        make Salloc.o; mv Salloc.o .. < /dev/null ; rm Salloc.c
        !           140:        
        !           141: ../Sdata.o: ../data.c
        !           142:        (echo "# define HOLE"; cat ../data.c) > Sdata.c;\
        !           143:        make Sdata.o; mv Sdata.o .. < /dev/null  ; rm Sdata.c
        !           144: 
        !           145: first8.out: first8.c
        !           146:        cc -I../h first8.c -o first8.out
        !           147: 
        !           148: ../low.o: ../low.c
        !           149:        cc -S $(CFLAGS) ../low.c; sed 's/data$$/text/' < low.s > Low.s
        !           150:        as -o ../low.o Low.s; rm Low.s low.s
        !           151: 
        !           152: #ifdef unisoft
        !           153: #qfuncl.o: qfuncl.c first8.out
        !           154: #      cc -E $(CFLAGS) ${ProfFlag2} qfuncl.c |\
        !           155: #      ./first8.out | sed 's/^#/|/' > qfuncl.s
        !           156: #      as -o qfuncl.o qfuncl.s
        !           157: #      rm qfuncl.s
        !           158: #
        !           159: #else
        !           160: qfuncl.o: qfuncl.c
        !           161:        cc -I../h -E ${ProfFlag2} qfuncl.c > x.s; as -o qfuncl.o x.s; rm x.s
        !           162: #endif
        !           163: 
        !           164: # rawlisp is the standard raw lisp system.
        !           165: 
        !           166: rawlisp: ${BottomObj} ${NoHoleObj} ${MipObj4} ${M68kObj} ${OsObjs}
        !           167:        rm -f rawlisp
        !           168:        ld $N -x -o rawlisp -e start ${BottomObj} ${NoHoleObj} \
        !           169:                                ${M68kObj} ${MipObj4} ${OsObjs} \
        !           170:                                ${Libs} -ltermcap -lm -lc
        !           171:        ls -l rawlisp
        !           172: 
        !           173: 
        !           174: # hlisp is a raw lisp system with a hole between text and data
        !           175: 
        !           176: rawhlisp: ${BottomObj} ${HoleObj} ${MipObj4} ${M68kObj} ${OsObjs}
        !           177:        rm -f rawhlisp
        !           178:        ld -x -H ${HOLE} -o rawhlisp -e hstart ${BottomObj}  ${HoleObj} \
        !           179:                                ${M68kObj} ${MipObj4} ${OsObjs} \
        !           180:                                ${Libs} -ltermcap -lm -lc
        !           181:        ls -l rawhlisp
        !           182: 
        !           183: 
        !           184: clean:
        !           185:        rm -f *.o rawlisp rawhlisp nlisp snlisp
        !           186: 
        !           187: lint:
        !           188:        lint ../h/*.h *.c
        !           189: 
        !           190: install: nlisp 
        !           191:        -rm -f ${ObjDir}/lisp
        !           192:        mv nlisp ${ObjDir}/lisp
        !           193:        @echo lisp installed
        !           194: 
        !           195: nlisp: rawlisp ${LibDir}
        !           196:        -rm -f nlisp
        !           197:        (cd ${LibDir} ; make Liszt=${Liszt} required)
        !           198:        echo "(progn (setq build:map 'map \
        !           199:                           build:lisp-type 'franz \
        !           200:                           lisp-library-directory '${LibDir} \
        !           201:                           build:dir '${LibDir} \
        !           202:                           lisp-object-directory '${ObjDir}) \
        !           203:                     (load '${LibDir}/buildlisp)\
        !           204:                     (dumplisp nlisp))" | ./rawlisp
        !           205:        ${LibDir}/tackon map nlisp
        !           206:        @echo nlisp built
        !           207: 
        !           208: 
        !           209: donlisp:
        !           210:        -rm -f nlisp
        !           211:        make LibDir=${LibDir} Liszt=${Liszt} ObjDir=${ObjDir} nlisp
        !           212: 
        !           213: #--- snlisp: create a totally interpreted lisp.
        !           214: #      dump as snlisp
        !           215: snlisp: rawlisp
        !           216:        echo "(progn (setq build:load t         \
        !           217:                           build:lisp-type 'franz \
        !           218:                           build:dir '${LibDir} \
        !           219:                           lisp-object-directory '${ObjDir}\
        !           220:                           lisp-library-directory '${LibDir})\
        !           221:                     (load '${LibDir}/buildlisp)\
        !           222:                     (dumplisp snlisp))" | rawlisp
        !           223: 
        !           224: 
        !           225: tags:  tags ${M68kCSrc} ${MipSrc}
        !           226:        ctags ../h/*.h $(M68kCSrc) ${MipSrc}
        !           227: 
        !           228: #--- copysource : copy source files to another directory
        !           229: #  called via   make CopyTo=/xx/yyy/zz copysource
        !           230: # 
        !           231: copysource: ${AllSrc}
        !           232:        (tar cf - ${AllSrc} | (cd ${CopyTo} ; tar xf -))
        !           233: 
        !           234: copyobjects: ${AllObj}
        !           235:        (tar cf - ${AllObj} | (cd ${CopyTo} ; tar xf -))
        !           236: 
        !           237: scriptcatall: ${AllSrc}
        !           238:        @../../scriptcat . franz/68k ${AllSrc} tags

unix.superglobalmegacorp.com

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