1 1.1 deraadt # @(#)Makefile 5.4 (Berkeley) 2/15/93 2 1.1 deraadt 3 1.1 deraadt DESTDIR= 4 1.1 deraadt STAND= ../../stand 5 1.1 deraadt INCPATH=-I. -I../.. 6 1.1 deraadt VPATH= ${STAND} 7 1.1 deraadt 8 1.1 deraadt # RELOC=80200000 allows for boot prog up to 1D0000 (1900544) bytes long 9 1.1 deraadt RELOC= 80200000 10 1.1 deraadt 11 1.1 deraadt DEFS= -DSTANDALONE -DDS5000 -DSMALL 12 1.1 deraadt CFLAGS= -O ${INCPATH} ${DEFS} 13 1.1 deraadt AFLAGS= -O ${INCPATH} ${DEFS} -DLOCORE 14 1.1 deraadt 15 1.1 deraadt DRIVERS= rz.c 16 1.1 deraadt SRCS= ${DRIVERS} 17 1.1 deraadt LIBS= libdrive.a libsa/libsa.a ../../libkern/obj/libkern.a 18 1.1 deraadt 19 1.1 deraadt #ALL= boot mkboot mkboottape 20 1.1 deraadt ALL= boot 21 1.1 deraadt 22 1.1 deraadt .s.o: 23 1.1 deraadt ${CPP} -E ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \ 24 1.1 deraadt ${AS} -o ${.TARGET} 25 1.1 deraadt 26 1.1 deraadt all: ${ALL} 27 1.1 deraadt 28 1.1 deraadt boot: ${LIBS} 29 1.1 deraadt 30 1.1 deraadt libsa/libsa.a:: 31 1.1 deraadt cd libsa; make 32 1.1 deraadt 33 1.1 deraadt libdrive.a: conf.o ${DRIVERS:.c=.o} 34 1.1 deraadt ar crv $@ $? 35 1.1 deraadt ranlib $@ 36 1.1 deraadt 37 1.1 deraadt # depend on DEFS 38 1.1 deraadt 39 1.1 deraadt # bootable from real disks 40 1.1 deraadt 41 1.1 deraadt boot: start.o boot.o bootconf.o ${LIBS} 42 1.1 deraadt ld -N -Ttext ${RELOC} -e start start.o boot.o bootconf.o ${LIBS} -o $@ 43 1.1 deraadt 44 1.1 deraadt start.o: start.s 45 1.1 deraadt ${CPP} -E ${CFLAGS:M-[ID]*} -DLOCORE ${AINC} ${.IMPSRC} | \ 46 1.1 deraadt ${AS} -o ${.TARGET} 47 1.1 deraadt 48 1.1 deraadt bootconf.o: conf.o 49 1.1 deraadt rm -f bootconf.c 50 1.1 deraadt ln -s conf.c bootconf.c 51 1.1 deraadt ${CC} -c ${CFLAGS} -DBOOT bootconf.c 52 1.1 deraadt rm -f bootconf.c 53 1.1 deraadt 54 1.1 deraadt mkboot: mkboot.c 55 1.1 deraadt ${CC} ${CFLAGS} -o mkboot mkboot.c 56 1.1 deraadt 57 1.1 deraadt mkboottape: mkboottape.c 58 1.1 deraadt ${CC} ${CFLAGS} -o mkboottape mkboottape.c 59 1.1 deraadt 60 1.1 deraadt # utilities 61 1.1 deraadt 62 1.1 deraadt clean cleandir: 63 1.1 deraadt rm -f .depend *.o *.exe *.i errs make.out core* 64 1.1 deraadt rm -f a.out boot cat 65 1.1 deraadt rm -f boot[a-z][a-z] [a-z][a-z]boot 66 1.1 deraadt rm -f libdrive.a mkboot mkboottape 67 1.1 deraadt cd libsa; make cleandir 68 1.1 deraadt 69 1.1 deraadt install: 70 1.1 deraadt ./mkboot boot rzboot bootrz 71 1.1 deraadt install -s -o bin -g bin -m 444 rzboot ${DESTDIR}/usr/mdec 72 1.1 deraadt install -s -o bin -g bin -m 444 bootrz ${DESTDIR}/usr/mdec 73 1.1 deraadt 74 1.1 deraadt depend: ${SRCS} 75 1.1 deraadt mkdep ${INCPATH} ${DEFS} ${SRCS} 76 1.1 deraadt mkdep -a -p ${INCPATH} ${DEFS} mkboot.c mkboottape.c 77 1.1 deraadt cd libsa; make depend 78