summaryrefslogtreecommitdiffstats
path: root/sys/boot/alpha/cdboot/Makefile
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-09-03 19:42:18 +0000
committermsmith <msmith@FreeBSD.org>1999-09-03 19:42:18 +0000
commitfc224426ed4ab8a5e328690796fa0b41fa490b31 (patch)
treef6454e2bee072f4d272ac74346200f72721f4d64 /sys/boot/alpha/cdboot/Makefile
parent3a2a2ef94263b7ce1524a3e8e6c756614d0e5add (diff)
downloadFreeBSD-src-fc224426ed4ab8a5e328690796fa0b41fa490b31.zip
FreeBSD-src-fc224426ed4ab8a5e328690796fa0b41fa490b31.tar.gz
Slight reorganisation of the Alpha/SRM loader build:
- Make as much of the makefile for each of the three flavours (disk, CDROM, net) common. - Special-case the libalpha startup module on its use in boot1, not the other way around. - Build the loader out of a "loader" directory Reviewed by: mjacob, dfr
Diffstat (limited to 'sys/boot/alpha/cdboot/Makefile')
-rw-r--r--sys/boot/alpha/cdboot/Makefile66
1 files changed, 3 insertions, 63 deletions
diff --git a/sys/boot/alpha/cdboot/Makefile b/sys/boot/alpha/cdboot/Makefile
index c25d1f4..87bfffd 100644
--- a/sys/boot/alpha/cdboot/Makefile
+++ b/sys/boot/alpha/cdboot/Makefile
@@ -1,71 +1,11 @@
# $FreeBSD$
-# $NetBSD: Makefile,v 1.12 1998/02/19 14:18:36 drochner Exp $
BASE= cdboot
PROG= ${BASE}
NOMAN=
NEWVERSWHAT= "SRM CD9660 boot" alpha
+LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
-.PATH: ${.CURDIR}/../common
-
-# i386-specific bootstrap sources
-SRCS+= main.c conf.c
-
-# Always add MI sources
-.PATH: ${.CURDIR}/../../common
-.include <${.CURDIR}/../../common/Makefile.inc>
-CFLAGS+= -mno-fp-regs
-CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
-CFLAGS+= -I${.CURDIR}/../../.. -I.
-CFLAGS+= -I${.OBJDIR}
-CFLAGS+= -DCDBOOT
-
-CLEANFILES+= vers.c vers.o gensetdefs.o gensetdefs setdef0.o setdef1.o \
- setdefs.h start.o
-CLEANFILES+= ${BASE} ${BASE}.sym ${BASE}.list
-
-CFLAGS+= -Wall
-
-CFLAGS+= -I${LIBSTANDDIR}
-CFLAGS+= -I${.CURDIR}/..
-CRT= start.o
-STRIP=
-BINDIR?= /boot
-
-all: ${BASE}
-
-vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
- sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
- ${CC} -c vers.c
-
-${BASE}: ${BASE}.sym
- objcopy -O binary ${BASE}.sym ${BASE}
-
-${BASE}.nosym: ${BASE}.sym
- cp ${BASE}.sym ${BASE}.nosym
- strip ${BASE}.nosym
-
-${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBALPHA} ${CRT} vers.o setdef0.o setdef1.o
- ${LD} -o ${BASE}.sym -M -e start -N -Ttext ${PRIMARY_LOAD_ADDRESS} \
- ${CRT} setdef0.o ${OBJS} setdef1.o \
- vers.o ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} >${.OBJDIR}/${BASE}.list
-
-start.o: ${.CURDIR}/../libalpha/start.S
- ${CC} -c ${CFLAGS} $<
-
-setdef0.o: setdefs.h
-
-setdef1.o: setdefs.h
-
-.include <bsd.prog.mk>
-
-setdefs.h: gensetdefs ${OBJS}
- @echo Generating linker sets
- @./gensetdefs ${OBJS} >setdefs.h
-
-gensetdefs: gensetdefs.o
- ${CC} -static gensetdefs.o -o $@
-
-gensetdefs.o: gensetdefs.c
- ${CC} -c $<
+CFLAGS+= -DLOADER_CDROM_SUPPORT
+.include <${.CURDIR}/../common/Makefile.common>
OpenPOWER on IntegriCloud