1 # $NetBSD: Makefile.bootxxx,v 1.5 2009/01/13 13:44:01 tsutsui Exp $
13 # XXX SHOULD NOT NEED TO DEFINE THESE!
20 S=${.CURDIR}/../../../../..
22 S_KERN=${S}/lib/libkern
23 S_MACHSA=${S}/arch/atari/stand/libsa
24 S_LIBTOS=${S}/arch/atari/stand/tostools/libtos
26 S_MACHSAOBJ!= cd ${S_MACHSA} && ${PRINTOBJDIR}
28 LIBSA=${S_MACHSAOBJ}/lib/sa/libsa.a
29 LIBKERN=${S_MACHSAOBJ}/lib/kern/libkern.a
31 .include "../../Makefile.booters"
32 .include "../../xxboot/${BTYPE}_LOADADDR"
34 CPPFLAGS+= -I. -I${S_LIBTOS} -I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S}
35 .if ${OBJECT_FMT} == "ELF"
36 LINKFLAGS= -static -N -e start -Ttext ${LOADADDR3}
38 LINKFLAGS= -static -N -Ttext ${LOADADDR3}
41 .PATH: ${.CURDIR}/.. ${S_LIBTOS}
44 # Warning: start.S should be the first source!
46 SRCS= start.S bootxxx.c aout.c bsdstart.s elf.c filesystem.c sysinfo.c
48 LIBS= ${LIBSA} ${LIBKERN}
51 ${INSTALL_DIR} ${DESTDIR}${BINDIR}
53 ${PROG}: ${OBJS} ${LIBS}
55 ${LD} ${LINKFLAGS} -o ${.TARGET}.elf ${OBJS} ${LIBS}
56 ${OBJCOPY} -O binary ${PROG}.elf ${.TARGET}
58 CLEANFILES+= ${PROG}.elf
60 .include <bsd.prog.mk>