blob: 07b7f041de67d95a8ea2085ffec3e7da8c5aee29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $OpenBSD: Makefile,v 1.5 1999/11/09 06:30:15 rahnds Exp $
# $NetBSD: Makefile,v 1.1 1996/09/30 16:35:05 ws Exp $
R= ..
.PATH: $(.CURDIR)/$(R)
RELOC= 20000
ENTRY= _entry
LOADADDR= 20000
PROG= boot.mac
SRCS= Locore.c boot.c ofdev.c net.c netif_of.c alloc.c
CFLAGS+= -DDEBUG -DNETIF_DEBUG
CFLAGS+= -DEXEC_ELF -DXCOFF_GLUE -DMAC
NOMAN=
INSTALL_STRIP=
MAKEELF= makeelf
BINDIR= /usr/mdec
OBJCOPY?= objcopy
OBJCOPY_ARGS= -O aixcoff-rs6000 -R .stab -R .stabstr -R .comment
LDFLAGS= -X -Ttext $(RELOC) -e $(ENTRY) -T ${.CURDIR}/ld.script
LIBS!= cd $(.CURDIR)/$(R); $(MAKE) libdep
CLEANFILES= hack-coff
$(PROG): $(OBJS) $(LIBS) hack-coff
$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o ${.TARGET}
${OBJCOPY} ${OBJCOPY_ARGS} ${.TARGET}
${.OBJDIR}/hack-coff ${.TARGET}
# ${MAKEELF} $(REAL_VIRT) a.out $(.TARGET)
hack-coff: hack-coff.c
${HOSTCC} -I${.CURDIR} -o hack-coff ${.CURDIR}/hack-coff.c
.include <bsd.prog.mk>
|