Annotation of sys/arch/sparc64/stand/ofwboot/Makefile, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: Makefile,v 1.9 2007/05/03 18:38:11 deraadt Exp $
2: # $NetBSD: Makefile,v 1.2 2001/03/04 14:50:05 mrg Exp $
3:
4: CURDIR= ${.CURDIR}
5: S= ${CURDIR}/../../../..
6:
7: #
8: # Override normal settings
9: #
10:
11: WARNS= 0
12:
13: PROG?= ofwboot
14: NOMAN= ja, man!
15: SRCS= srt0.s Locore.c boot.c ofdev.c alloc.c net.c netif_of.c vers.c
16: .PATH: ${S}/arch/sparc64/sparc64
17:
18: CWARNFLAGS+= -Wno-main
19: AFLAGS+= -Wa,-Av9a
20: AFLAGS+= -x assembler-with-cpp -traditional-cpp -D_LOCORE -D__ELF__
21: CFLAGS+= ${COPTS}
22: CPPFLAGS+= -D_STANDALONE -DSUN4U -nostdinc
23: #CPPFLAGS+= -DNETIF_DEBUG
24:
25: BINMODE= 444
26:
27: NEWVERSWHAT= "OpenFirmware Boot"
28:
29: #
30: # ELF64 defaults to 1MB
31: #
32: # We may get address conflicts with other bootloaders, say
33: # Sun's ufsboot, so we'll pick a reasonably empty address.
34: #
35: RELOC= 800000
36:
37: ENTRY= _start
38:
39: CLEANFILES+= vers.c sparc machine
40:
41: CPPFLAGS+= -I${CURDIR}/../../.. -I${CURDIR}/../../../.. -I${CURDIR} -I.
42: CPPFLAGS+= -DRELOC=0x${RELOC}
43:
44: #
45: # XXXXX FIXME
46: #
47: CPPFLAGS+= -DSPARC_BOOT_ELF
48: CPPFLAGS+= -DSPARC_BOOT_UFS
49: CPPFLAGS+= -DSPARC_BOOT_NFS
50: #CPPFLAGS+= -DSPARC_BOOT_HSFS
51:
52: .if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir) && !make(obj)
53: .BEGIN:
54: @([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
55: .endif
56:
57: ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
58: ${LD} -N -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
59: ${OBJS} -L${LIBSADIR} ${LIBSA} -L${LIBKERNDIR} ${LIBKERN} \
60: -L${LIBZDIR} ${LIBZ}
61:
62: NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
63: srt0.o: srt0.s
64: ${NORMAL_S}
65:
66: # Explicit dependency for this.
67: boot.o: boot.c elfXX_exec.c
68:
69: .include <bsd.prog.mk>
CVSweb