1 1.5 tsutsui # $NetBSD: Makefile,v 1.5 2000/04/13 14:19:57 tsutsui Exp $ 2 1.1 tsutsui 3 1.1 tsutsui COMMON= ${.CURDIR}/../common 4 1.1 tsutsui .ifnmake(print-objdir) 5 1.1 tsutsui COMMONOBJ!= cd ${COMMON}; ${MAKE} print-objdir 6 1.1 tsutsui .endif 7 1.1 tsutsui 8 1.1 tsutsui .PATH: ${COMMON} 9 1.1 tsutsui 10 1.1 tsutsui PROG= boot 11 1.1 tsutsui SRCS= locore.S boot.c devopen.c 12 1.1 tsutsui SRCS+= romcalls.S putchar.c 13 1.1 tsutsui MKMAN= no 14 1.1 tsutsui STRIPFLAG= 15 1.1 tsutsui BINMODE= 444 16 1.1 tsutsui 17 1.1 tsutsui SIZE?= size 18 1.4 tsutsui STRIP?= strip 19 1.1 tsutsui 20 1.1 tsutsui S= ${.CURDIR}/../../../.. 21 1.1 tsutsui 22 1.1 tsutsui LDFLAGS= -x -N -Ttext 3e0000 23 1.1 tsutsui CFLAGS= -Os -Wall 24 1.1 tsutsui 25 1.5 tsutsui CPPFLAGS+= -D_STANDALONE # -DBOOT_DEBUG 26 1.1 tsutsui CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} 27 1.1 tsutsui AFLAGS= -D_LOCORE 28 1.1 tsutsui 29 1.3 mycroft CLEANFILES+= ${PROG}.tmp machine m68k 30 1.1 tsutsui 31 1.1 tsutsui L= ${COMMONOBJ}/lib 32 1.1 tsutsui LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a 33 1.1 tsutsui 34 1.3 mycroft .BEGIN: machine m68k 35 1.3 mycroft .NOPATH: machine m68k 36 1.3 mycroft realdepend realall: machine m68k 37 1.1 tsutsui 38 1.3 mycroft machine:: 39 1.1 tsutsui -rm -f $@ 40 1.1 tsutsui ln -s ${S}/arch/${MACHINE}/include $@ 41 1.1 tsutsui 42 1.3 mycroft m68k:: 43 1.1 tsutsui -rm -f $@ 44 1.1 tsutsui ln -s ${S}/arch/m68k/include $@ 45 1.1 tsutsui 46 1.3 mycroft ${PROG}: ${OBJS} machine m68k 47 1.1 tsutsui ${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS} 48 1.1 tsutsui -${SIZE} ${PROG} 49 1.4 tsutsui ${STRIP} ${PROG} 50 1.1 tsutsui tail -c +33 ${PROG} > ${PROG}.tmp 51 1.1 tsutsui mv ${PROG}.tmp ${PROG} 52 1.1 tsutsui 53 1.1 tsutsui .include <bsd.prog.mk> 54