diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-01-19 03:04:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-01-19 03:04:18 +0000 |
commit | 83a362fcae09d0d212af0fc11716e9c9cc946adb (patch) | |
tree | 36b003a124f1d5c725b0d6b6963d60859516c6e2 /distrib/special | |
parent | 4a5e691158d7b60fab20dc710d00a171e2d181dc (diff) |
Add makefile for distrib/special/installboot.
Diffstat (limited to 'distrib/special')
-rw-r--r-- | distrib/special/installboot/Makefile | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/distrib/special/installboot/Makefile b/distrib/special/installboot/Makefile new file mode 100644 index 00000000000..6c722f747c2 --- /dev/null +++ b/distrib/special/installboot/Makefile @@ -0,0 +1,123 @@ +# $OpenBSD: Makefile,v 1.1 2014/01/19 03:04:17 jsing Exp $ + +.PATH: ${.CURDIR}/../../../usr.sbin/installboot + +PROG= installboot +SRCS= installboot.c util.c + +CPPFLAGS= -I${.CURDIR}/../../../usr.sbin/installboot +LDADD= -lutil +DPADD= ${LIBUTIL} + +LDSTATIC= -static + +.if ${MACHINE} == "alpha" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "amd64" +CFLAGS += -DSOFTRAID +SRCS += i386_installboot.c +SRCS += i386_nlist.c +SRCS += i386_softraid.c +.endif + +.if ${MACHINE} == "armish" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "armv7" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "aviion" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "hp300" +CFLAGS += -DBOOTSTRAP +SRCS += hp300_installboot.c +.endif + +.if ${MACHINE} == "hppa" +CFLAGS += -DBOOTSTRAP +SRCS += hppa_installboot.c +.endif + +.if ${MACHINE} == "hppa64" +CFLAGS += -DBOOTSTRAP +SRCS += hppa64_installboot.c +.endif + +.if ${MACHINE} == "i386" +CFLAGS += -DSOFTRAID +SRCS += i386_installboot.c +SRCS += i386_nlist.c +SRCS += i386_softraid.c +.endif + +.if ${MACHINE} == "landisk" +CFLAGS += -DBOOTSTRAP +SRCS += landisk_installboot.c +.endif + +.if ${MACHINE} == "loongson" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "luna88k" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "macppc" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "mvme68k" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "mvme88k" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "octeon" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "sgi" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "socppc" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "sparc" +SRCS += stubs.c +.endif + +.if ${MACHINE} == "sparc64" +CFLAGS += -DSOFTRAID +SRCS += sparc64_installboot.c +SRCS += sparc64_softraid.c +.endif + +.if ${MACHINE} == "vax" +CFLAGS += -DBOOTSTRAP +SRCS += vax_installboot.c +.endif + +.if ${MACHINE} == "zaurus" +SRCS += stubs.c +.endif + +.if !empty(CFLAGS:M-DBOOTSTRAP) +SRCS += bootstrap.c +.endif + +.if !empty(CFLAGS:M-DSOFTRAID) +SRCS += softraid.c +.endif + +.include <bsd.prog.mk> |