blob: e138b31b86d11e71ee67db248fde7e3fc75cc1f6 (
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
36
37
38
39
|
# $OpenBSD: Makefile,v 1.2 1999/08/18 17:13:19 downsj Exp $
PROG= cdboot
NOMAN=
.PATH: ${.CURDIR}/../uboot
CFLAGS= -O2 -DOSREV=\"${OSREV}\" -msoft-float -I${.CURDIR}/../include \
-I${.CURDIR}/../libsa -I${.CURDIR}/../.. -I${.CURDIR}/../../.. \
-I${.CURDIR}/../../../..
AFLAGS= -x assembler-with-cpp -traditional-cpp -I${.CURDIR}/../include \
-I${.CURDIR}/../libsa -I${.CURDIR}/../.. -I${.CURDIR}/../../.. \
-I${.CURDIR}/../../../..
SRCS= srt0.S cdboot.c clock.c conf.c cons.c devopen.c
LIBS= ${LIBCOMMON} ${LIBSA} ${LIBZ} ${LIBKERN}
${OBJS}: ${.CURDIR}/../Makefile.inc
CLEANFILES+= cdboot.lif
cdboot.lif: cdboot
${MKBOOT_PROG} cdboot $@
cdboot: ${OBJS} ${LIBS}
${LD} -N -T ${RELOC} -e begin ${OBJS} ${LIBS} -o $@
@size $@
@echo $@ total size may not exceed 30000 bytes
install: cdboot.lif cdboot.raw ${MKBOOT_PROG}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 cdboot.lif \
${DESTDIR}/usr/mdec
cdboot.o: Makefile
.include <bsd.prog.mk>
|