1 # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 2 # $OpenBSD$ 3 4 RELOC=0x3F0000 5 6 S= ${.CURDIR}/../../../.. 7 DEFS= 8 INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ 9 -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa 10 CFLAGS= -O2 ${INCPATH} ${DEFS} ${COPTS} 11 CLEANFILES+=stboot bootst bootst.bug 12 13 .include "${S}/arch/${MACHINE}/stand/libsa/Makefile.inc" 14 .include "${S}/arch/${MACHINE}/stand/libbug/Makefile.inc" 15 .include "${S}/arch/${MACHINE}/stand/bugcrt/Makefile.inc" 16 .include "${S}/arch/${MACHINE}/stand/wrtvid/Makefile.inc" 17 18 SRCS= bootst.c 19 20 LIBS= ${LIBSA} ${LIBBUG} 21 22 OBJS= ${SRCS:N*.h:R:S/$/.o/g} 23 24 BOOTS= bootst stboot 25 ALL= ${BOOTS} 26 27 all: ${ALL} 28 29 bootst.bug: ${OBJS} ${BUGCRT} ${LIBS} 30 ${LD} -s -N -T ${RELOC} ${BUGCRT} ${OBJS} ${LIBS} -o $@ 31 @size bootst.bug 32 33 bootst stboot: bootst.bug ${WRTVID} 34 ${WRTVID} bootst.bug 35 36 install: 37 install -c -m 555 -g bin -o bin ${BOOTS} ${DESTDIR}${MDEC_DIR} 38 39 .include <bsd.prog.mk> 40