summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2013-12-28 15:16:29 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2013-12-28 15:16:29 +0000
commit0923654b82bc7b58c3348c61d75b9f0ddbd66268 (patch)
treeffd7d423ba4d0b93268d14012250995bbc3e157c /sys/arch
parent4f2ff32d4ae674200b18d68e94cf6e969b22312c (diff)
Further clean up and unification of the amd64 and i386 boot(8) makefiles.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/stand/boot/Makefile18
-rw-r--r--sys/arch/i386/stand/boot/Makefile32
2 files changed, 24 insertions, 26 deletions
diff --git a/sys/arch/amd64/stand/boot/Makefile b/sys/arch/amd64/stand/boot/Makefile
index 2f11b72cf37..a3c5fa8ed4f 100644
--- a/sys/arch/amd64/stand/boot/Makefile
+++ b/sys/arch/amd64/stand/boot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.25 2013/12/28 02:51:06 deraadt Exp $
+# $OpenBSD: Makefile,v 1.26 2013/12/28 15:16:28 jsing Exp $
COPTS?=
MAN?= boot.8
@@ -21,6 +21,9 @@ SIZE?= size
LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie
LDFLAGS+=-melf_i386 -L/usr/libdata
+.PATH: ${S}/stand/boot
+SRCS+= boot.c bootarg.c cmd.c vars.c
+
.PATH: ${SADIR}/libsa
SRCS+= alloca.S gidt.S random_i386.S
SRCS+= cmd_i386.c dev_i386.c exec_i386.c gateA20.c machdep.c
@@ -29,23 +32,20 @@ SRCS+= bioscons.c biosdev.c diskprobe.c memprobe.c time.c
SRCS+= softraid.c
.endif
-.PATH: ${S}/stand/boot
-SRCS+= boot.c bootarg.c cmd.c vars.c
-
.PATH: ${S}/lib/libsa
-SRCS+= alloc.c ctime.c exit.c getfile.c gets.c globals.c memcmp.c memcpy.c \
- memset.c printf.c snprintf.c strcmp.c strerror.c strlcat.c strlcpy.c \
- strlen.c strncmp.c strncpy.c strtol.c strtoll.c
+SRCS+= alloc.c ctime.c exit.c memcmp.c memcpy.c memset.c printf.c snprintf.c \
+ strcmp.c strerror.c strlen.c strncmp.c strncpy.c strtol.c strtoll.c
SRCS+= close.c closeall.c cons.c cread.c dev.c disklabel.c dkcksum.c fstat.c \
- ioctl.c lseek.c open.c read.c readdir.c stat.c write.c
+ lseek.c open.c read.c readdir.c stat.c
SRCS+= elf32.c elf64.c loadfile.c
SRCS+= ufs.c
.if ${SOFTRAID:L} == "yes"
SRCS+= aes_xts.c explicit_bzero.c hmac_sha1.c pbkdf2.c rijndael.c sha1.c
.endif
-.PATH: ${S}/lib/libkern/arch/amd64 ${S}/lib/libkern
+.PATH: ${S}/lib/libkern
SRCS+= divdi3.c moddi3.c qdivrem.c
+SRCS+= strlcpy.c
.PATH: ${S}/lib/libz
SRCS+= adler32.c crc32.c inflate.c inftrees.c
diff --git a/sys/arch/i386/stand/boot/Makefile b/sys/arch/i386/stand/boot/Makefile
index d8c75948ce0..04d92fedb76 100644
--- a/sys/arch/i386/stand/boot/Makefile
+++ b/sys/arch/i386/stand/boot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.53 2013/12/28 02:51:07 deraadt Exp $
+# $OpenBSD: Makefile,v 1.54 2013/12/28 15:16:28 jsing Exp $
COPTS?=
MAN?= boot.8
@@ -21,31 +21,31 @@ LDFLAGS+=-nostdlib -Bstatic -nopie
.if defined(DEBUGFLAGS) && !empty(DEBUGFLAGS:M-D_TEST)
CLEANFILES+= srt0.o
-SRCS= crt0.c
+SRCS= crt0.c conf.c
.else
-LDFLAGS+=-Ttext $(LINKADDR) -N -x
CLEANFILES+= crt0.o
-SRCS= srt0.S
+SRCS= srt0.S conf.c
+LDFLAGS+=-Ttext $(LINKADDR) -N -x
.endif
.PATH: ${S}/stand/boot
-SRCS+= boot.c cmd.c vars.c bootarg.c conf.c
+SRCS+= boot.c bootarg.c cmd.c vars.c
.PATH: ${SADIR}/libsa
-SRCS+= alloca.S debug_i386.S gidt.S random_i386.S
-SRCS+= apmprobe.c bioscons.c biosdev.c cmd_i386.c debug.c dev_i386.c \
- diskprobe.c exec_i386.c gateA20.c machdep.c memprobe.c pciprobe.c \
- ps2probe.c time.c
+SRCS+= debug_i386.S
+SRCS+= alloca.S gidt.S random_i386.S
+SRCS+= apmprobe.c debug.c pciprobe.c ps2probe.c
+SRCS+= cmd_i386.c dev_i386.c exec_i386.c gateA20.c machdep.c
+SRCS+= bioscons.c biosdev.c diskprobe.c memprobe.c time.c
.if ${SOFTRAID:L} == "yes"
SRCS+= softraid.c
.endif
.PATH: ${S}/lib/libsa
-SRCS+= alloc.c cread.c ctime.c exit.c memcmp.c memcpy.c memset.c printf.c \
- snprintf.c strcmp.c strerror.c strlen.c strncmp.c strncpy.c strtol.c \
- strtoll.c
-SRCS+= close.c closeall.c cons.c dev.c disklabel.c dkcksum.c fstat.c lseek.c \
- open.c read.c readdir.c stat.c
+SRCS+= alloc.c ctime.c exit.c memcmp.c memcpy.c memset.c printf.c snprintf.c \
+ strcmp.c strerror.c strlen.c strncmp.c strncpy.c strtol.c strtoll.c
+SRCS+= close.c closeall.c cons.c cread.c dev.c disklabel.c dkcksum.c fstat.c \
+ lseek.c open.c read.c readdir.c stat.c
SRCS+= elf32.c elf64.c loadfile.c
SRCS+= ufs.c
.if ${SOFTRAID:L} == "yes"
@@ -53,10 +53,8 @@ SRCS+= aes_xts.c explicit_bzero.c hmac_sha1.c pbkdf2.c rijndael.c sha1.c
.endif
.PATH: ${S}/lib/libkern
-SRCS+= strlcpy.c
-
-.PATH: ${S}/lib/libkern/arch/i386
SRCS+= divdi3.c moddi3.c qdivrem.c
+SRCS+= strlcpy.c
.PATH: ${S}/lib/libz
SRCS+= adler32.c crc32.c inflate.c inftrees.c