1 1.11.4.3 nathanw # $NetBSD: Makefile,v 1.11.4.3 2002/06/20 03:40:10 nathanw Exp $ 2 1.11.4.2 nathanw 3 1.11.4.2 nathanw NOMAN= # defined 4 1.11.4.2 nathanw 5 1.11.4.2 nathanw .include <bsd.own.mk> 6 1.11.4.2 nathanw 7 1.11.4.2 nathanw COMMON= ${.CURDIR}/../common 8 1.11.4.2 nathanw COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} 9 1.11.4.2 nathanw 10 1.11.4.2 nathanw .PATH: ${COMMON} 11 1.11.4.2 nathanw 12 1.11.4.2 nathanw PROG= boot 13 1.11.4.2 nathanw SRCS= locore.S boot.c devopen.c 14 1.11.4.3 nathanw SRCS+= romcalls.S getchar.c putchar.c 15 1.11.4.2 nathanw STRIPFLAG= 16 1.11.4.2 nathanw BINMODE= 444 17 1.11.4.2 nathanw 18 1.11.4.2 nathanw SIZE?= size 19 1.11.4.2 nathanw STRIP?= strip 20 1.11.4.2 nathanw 21 1.11.4.2 nathanw S= ${.CURDIR}/../../../.. 22 1.11.4.2 nathanw 23 1.11.4.2 nathanw LDFLAGS= -x -N -Ttext 3e0000 -e start 24 1.11.4.2 nathanw CFLAGS= -Os -Wall 25 1.11.4.2 nathanw 26 1.11.4.2 nathanw CPPFLAGS+= -D_STANDALONE # -DBOOT_DEBUG 27 1.11.4.2 nathanw CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} 28 1.11.4.2 nathanw AFLAGS= -D_LOCORE 29 1.11.4.2 nathanw 30 1.11.4.3 nathanw CLEANFILES+= ${PROG}.sym machine m68k 31 1.11.4.2 nathanw 32 1.11.4.2 nathanw L= ${COMMONOBJ}/lib 33 1.11.4.2 nathanw LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a 34 1.11.4.2 nathanw 35 1.11.4.2 nathanw .BEGIN: machine m68k 36 1.11.4.2 nathanw .NOPATH: machine m68k 37 1.11.4.2 nathanw realdepend realall: machine m68k 38 1.11.4.2 nathanw 39 1.11.4.2 nathanw machine:: 40 1.11.4.2 nathanw -rm -f $@ 41 1.11.4.2 nathanw ln -s ${S}/arch/${MACHINE}/include $@ 42 1.11.4.2 nathanw 43 1.11.4.2 nathanw m68k:: 44 1.11.4.2 nathanw -rm -f $@ 45 1.11.4.2 nathanw ln -s ${S}/arch/m68k/include $@ 46 1.11.4.2 nathanw 47 1.11.4.2 nathanw ${PROG}: ${OBJS} machine m68k 48 1.11.4.3 nathanw ${LD} ${LDFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS} 49 1.11.4.3 nathanw -${SIZE} ${.TARGET}.sym 50 1.11.4.3 nathanw ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET} 51 1.11.4.2 nathanw 52 1.11.4.2 nathanw .include <bsd.prog.mk> 53