Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 2003/11/11 06:30:39 sekiya Exp $ 2 3PROG= boot 4 5# Don't strip the ECOFF'ed version on install -- strip gets confused by that, 6# and it's already stripped since it's a copy of the stripped ELF one. 7# 8STRIPFLAG= 9 10SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \ 11 getopt.c disk.c 12 13${PROG}: ${PROG}.elf ${PROG}.ip32 14 ${ELF2ECOFF} ${PROG}.elf ${PROG} 15 @${SIZE} ${PROG} 16 17# XXX Temporary hack to install the ELF verision, too. 18FILES+= ${PROG}.elf ${PROG}.ip32 19CLEANFILES+= ${PROG}.elf ${PROG}.ip32 20 21CLEANFILES+= ${PROG}.map 22 23.include "../Makefile.booters" 24 25${PROG}.ip32: ${OBJS} ${LIBS} 26 ${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \ 27 -e start -o ${PROG}.ip32 ${OBJS} ${LIBS} 28 @${STRIP} -s ${PROG}.ip32 29 @${SIZE} ${PROG}.ip32 30 31${PROG}.elf: ${OBJS} ${LIBS} 32 ${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \ 33 -e start -o ${PROG}.elf ${OBJS} ${LIBS} 34 @${STRIP} -s ${PROG}.elf 35 @${SIZE} ${PROG}.elf 36