blob: 8a07f3e0316a1da3d21d79524bdb706ed574b69b (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id: Makefile,v 1.1 1997/10/14 07:25:32 gingold Exp $
RELOC=0xfff10000
S= ${.CURDIR}/../../../..
SRTOBJ= crt0.o
DIR_SA=$S/lib/libsa
DIR_KERN=$S/lib/libkern
M=$S/lib/libkern/arch/${MACHINE_ARCH}
.if exists ($M/Makefile.inc)
.PATH: $M
.include "$M/Makefile.inc"
.endif
SRC_net= nfs.c rpc.c net.c ether.c arp.c in_cksum.c netif.c \
bootparam.c rarp.c
#SRC_sa = alloc.c bcopy.c memcpy.c close.c getfile.c open.c \
# printf.c read.c strerror.c ufs.c globals.c lseek.c \
# closeall.c dev.c dkcksum.c nullfs.c fstat.c
SRC_sa = alloc.c memcpy.c memcmp.c memset.c strncmp.c close.c getfile.c \
open.c printf.c read.c strerror.c ufs.c globals.c lseek.c \
dev.c
SRC_kern= ashrdi3.c bcmp.c bzero.c strcmp.c strlen.c strncpy.c __main.c \
urem.S udiv.S sdiv.S umul.S rem.S
SRC_here= clock.c devopen.c dvma.c gets.c panic.c \
promboot.c zs.c exec_sun.c \
boot.c conf.c version.c dev_net.c if_le.c intr.c app.c \
probe.c
SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
OBJS= ${SRTOBJ} ${SRCS:S/.c/.o/g:S/.S/.o/g}
DEFS= -DSTANDALONE -DSUN_BOOTPARAMS # -DNFS_DEBUG -DDEBUG
INCL=-I${.CURDIR} -I${S} -I${S}/lib/libsa -I${M}
COPTS= #-fno-defer-pop
CFLAGS= -g ${COPTS} ${DEFS} ${DBG} ${INCL}
.PATH: ${DIR_SA} ${DIR_KERN} ${DIR_KERN_ARCH}
all: sk
.S.o:
${CC} -c ${CFLAGS} -o $@ $<
sk: ${OBJS}
${LD} -N -Ttext ${RELOC} -e start -o $@ ${OBJS}
cp $@ /tftpboot
install:
${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
netboot.bin ${DESTDIR}${MDEC_DIR}/netboot
.include <bsd.prog.mk>
|