Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / sgimips / stand / boot / Makefile
blobd99ef41162247e4a99951401ab26ab4f74d625b9
1 # $NetBSD$
4 # Don't strip the ECOFF'ed version on install -- strip gets confused by that,
5 # and it's already stripped since it's a copy of the stripped ELF one.
7 STRIPFLAG=
9 SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
10 getopt.c disk.c
12 PROG= aoutboot
13 ${PROG}: ip2xboot ip3xboot
14 .if ${MACHINE_ARCH} == "mipseb"
15 ${OBJCOPY} --impure -O ecoff-bigmips \
16 -R .pdr -R .mdebug.nabi32 -R .mdebug.abi32 \
17 -R .comment -R .ident \
18 ip2xboot ${.TARGET}
19 .else
20 touch ${.TARGET}
21 .endif
23 # XXX Temporary hack to install the ELF version, too.
24 FILES+= ip2xboot ip3xboot
25 CLEANFILES+= ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
27 CLEANFILES+= ip2xboot.map ip3xboot.map
29 .include "../Makefile.booters"
31 ip3xboot: ${OBJS} ${LIBS}
32 ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
33 -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
34 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
35 @${SIZE} ${.TARGET}
37 ip2xboot: ${OBJS} ${LIBS}
38 ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
39 -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
40 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
41 @${SIZE} ${.TARGET}
43 cleandir distclean: cleanlibdir
44 cleanlibdir:
45 -rm -rf lib