-# $OpenBSD: Makefile,v 1.3 2013/12/27 14:23:49 jsing Exp $
+# $OpenBSD: Makefile,v 1.4 2013/12/28 11:00:33 jsing Exp $
NOMAN=
.include "${.CURDIR}/${MACHINE}/Makefile.inc"
+.if !empty(CFLAGS:M-DBOOTSTRAP)
+SRCS += bootstrap.c
+.endif
+
+.if !empty(CFLAGS:M-DSOFTRAID)
+SRCS += softraid.c
+.endif
+
.else
NOPROG=
.endif
-# $OpenBSD: Makefile.inc,v 1.2 2013/12/27 15:02:49 jsing Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2013/12/28 11:00:33 jsing Exp $
CPPFLAGS += -I${.CURDIR}/amd64
-
-CFLAGS += -DNLIST
CFLAGS += -DSOFTRAID
-SRCS += softraid.c
-
.PATH: ${.CURDIR}/i386
SRCS += i386_installboot.c
SRCS += i386_nlist.c
-# $OpenBSD: Makefile.inc,v 1.1 2013/12/27 14:23:49 jsing Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2013/12/28 11:00:33 jsing Exp $
CPPFLAGS += -I${.CURDIR}/hppa
-
-SRCS += bootstrap.c
+CFLAGS += -DBOOTSTRAP
.PATH: ${.CURDIR}/hppa
SRCS += hppa_installboot.c
-# $OpenBSD: Makefile.inc,v 1.2 2013/12/27 15:02:49 jsing Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2013/12/28 11:00:33 jsing Exp $
CPPFLAGS += -I${.CURDIR}/i386
CFLAGS += -DSOFTRAID
-SRCS += softraid.c
-
.PATH: ${.CURDIR}/i386
SRCS += i386_installboot.c
SRCS += i386_nlist.c