Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / ews4800mips / stand / Makefile.bootxx
blobfa3c49d39e1006e437f9306107d2758d7f628e87
1 #       $NetBSD: Makefile.bootxx,v 1.3 2006/06/28 16:28:51 lukem Exp $
3 NOMAN           =
5 BINMODE         = 0444
7 S               = ${.CURDIR}/../../../..
8 COMMON          = ${.CURDIR}/../common
10 .PATH:          ${COMMON}
12 PROG            = ${BASE}
13 SRCS            += entry.S bootxx.c
14 SRCS            += boot_device.c floppy_2d.c floppy_2hd_ibmpc.c
15 #SRCS           += floppy_2hc.c
16 BINMODE         = 444
18 LINKFLAGS       = -T ${COMMON}/bootxx.ldscript -S -N
19 MIPSFLAGS       = -mips1 -G 0 -mno-abicalls
20 DEBUGFLAGS      = -Wall -Werror
21 DEBUGFLAGS      += -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
22 DEBUGFLAGS      += -Wno-format-zero-length -Wno-sign-compare
23 OPTFLAGS        = -Os -mmemcpy
24 FLAGS           = ${MIPSFLAGS} ${DEBUGFLAGS} ${OPTFLAGS}
25 AFLAGS          = -xassembler-with-cpp -D_LOCORE ${FLAGS}
26 CFLAGS          = ${FLAGS} -ffreestanding
28 CPPFLAGS        += -D_STANDALONE
29 CPPFLAGS        += -nostdinc -I${.OBJDIR} -I${COMMON} -I${S}
30 CPPFLAGS        += -D__daddr_t=int32_t
32 CLEANFILES      += ${PROG} ${PROG}.bin ${PROG}.elf ${PROG}.tmp
34 KERN_AS         = library
35 .include        "${S}/lib/libkern/Makefile.inc"
36 LIBKERN         = ${KERNLIB}
38 LIBS            = ${LIBKERN}
40 # XXX SHOULD NOT NEED TO DEFINE THESE!
41 LIBCRT0=
42 LIBC=
43 LIBCRTBEGIN=
44 LIBCRTEND=
46 ${PROG}: ${OBJS} ${LIBS}
47         ${_MKTARGET_LINK}
48         ${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS}
49         ${OBJCOPY} -O binary ${PROG}.elf ${BASE}.bin
50         ls -al ${BASE}.bin
51         dd if=${BASE}.bin of=${PROG}.tmp bs=4096 conv=sync
52         mv ${PROG}.tmp ${PROG}
53         ls -al ${PROG}
54 #       -rm -f ${BASE}.tmp
56 clean cleandir distclean: cleanlibdir
58 cleanlibdir:
59         -rm -rf lib
61 .include <bsd.klinks.mk>
62 .include <bsd.prog.mk>