blob: 65216c4afa1529153d7163c5ac6c7c325742a50a (
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
34
35
|
# $OpenBSD: Makefile,v 1.12 2008/04/02 21:53:17 miod Exp $
S=${.CURDIR}/../../../..
CFLAGS+=-I${.CURDIR}/../../include -I${.CURDIR}/../libbug -I${S}/lib/libsa
STAGE1_CFLAGS=-DSTAGE1
STAGE2_CFLAGS=-DSTAGE2
NETBOOT_CFLAGS=-DNETBOOT
SRCS=crt0.S
OBJS=stage1crt.o stage2crt.o netcrt.o
CLEANFILES+=stage1crt.out stage2crt.out netcrt.out ${OBJS}
all: ${OBJS}
stage1crt.o: crt0.S
${CC} ${CFLAGS} ${STAGE1_CFLAGS} -c ${.CURDIR}/crt0.S -o ${.TARGET}
${LD} -x -r ${.TARGET} -o ${.TARGET}ut
mv ${.TARGET}ut ${.TARGET}
stage2crt.o: crt0.S
${CC} ${CFLAGS} ${STAGE2_CFLAGS} -c ${.CURDIR}/crt0.S -o ${.TARGET}
${LD} -x -r ${.TARGET} -o ${.TARGET}ut
mv ${.TARGET}ut ${.TARGET}
netcrt.o: crt0.S
${CC} ${CFLAGS} ${NETBOOT_CFLAGS} -c ${.CURDIR}/crt0.S -o ${.TARGET}
${LD} -x -r ${.TARGET} -o ${.TARGET}ut
mv ${.TARGET}ut ${.TARGET}
install:
lint tags:
.include <bsd.prog.mk>
|