reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
This commit is contained in:
parent
c97bb0650d
commit
6603c44a84
@ -1,6 +1,10 @@
|
||||
# $NetBSD: Makefile,v 1.11 1999/04/02 09:13:27 cgd Exp $
|
||||
# $NetBSD: Makefile,v 1.12 1999/04/05 03:35:24 cgd Exp $
|
||||
|
||||
SUBDIR= boot bootxx installboot mkbootimage netboot setnetbootinfo \
|
||||
bootxx_cd9660 bootxx_ffs ustarboot
|
||||
SUBDIR= installboot mkbootimage setnetbootinfo
|
||||
SUBDIR+= boot bootxx_cd9660 bootxx_ffs netboot ustarboot
|
||||
|
||||
# temporary:
|
||||
SUBDIR+= installboot.old
|
||||
SUBDIR+= bootxx
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -1,10 +1,9 @@
|
||||
# $NetBSD: Makefile.bootprogs,v 1.9 1999/04/02 07:55:06 ross Exp $
|
||||
# $NetBSD: Makefile.bootprogs,v 1.10 1999/04/05 03:35:24 cgd Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
.PATH: ${.CURDIR}/../common
|
||||
|
||||
MKMAN= no
|
||||
STRIPFLAG=
|
||||
BINMODE= 444
|
||||
|
||||
@ -24,11 +23,15 @@ CLEANFILES+=machine alpha
|
||||
|
||||
all: machine-links ${PROG}
|
||||
|
||||
AFLAGS += -DASSEMBLER
|
||||
#CPPFLAGS+= -nostdinc -I${.OBJDIR}
|
||||
CPPFLAGS+= -I${.OBJDIR}
|
||||
CPPFLAGS += -D_STANDALONE -I${.CURDIR}/../.. -I${S}
|
||||
CFLAGS = ${CWARNFLAGS} -Os -mno-fp-regs -g
|
||||
AFLAGS+= -DASSEMBLER
|
||||
# -I${.CURDIR}/../.. done by Makefile.inc
|
||||
CPPFLAGS+= -nostdinc -I${.OBJDIR} -D_STANDALONE -I${S}
|
||||
CFLAGS= -Os -mno-fp-regs -g
|
||||
|
||||
HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
||||
# For descriptions of regions available to bootstrap programs, see
|
||||
# section 3.4.1.2 (pp. III 3-14 - III 3-18) of the second edition of
|
||||
|
@ -1,10 +1,11 @@
|
||||
# $NetBSD: Makefile.inc,v 1.13 1998/09/28 21:18:56 thorpej Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.14 1999/04/05 03:35:24 cgd Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
BINDIR= /usr/mdec
|
||||
WARNS?= 1
|
||||
|
||||
CWARNFLAGS+= -Wall
|
||||
MKMAN= no
|
||||
|
||||
HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
CFLAGS+= -I${.CURDIR}/../..
|
||||
LDSTATIC?= -static
|
||||
|
@ -1,17 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 1999/04/02 08:40:26 cgd Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
# $NetBSD: Makefile,v 1.2 1999/04/05 03:35:24 cgd Exp $
|
||||
|
||||
PROG= mkbootimage
|
||||
BINDIR= /usr/mdec
|
||||
|
||||
WARNS?= 1
|
||||
|
||||
SRCS= mkbootimage.c
|
||||
|
||||
MKMAN= no
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/../..
|
||||
LDSTATIC?= -static
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,13 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.9 1999/02/13 02:54:37 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
# $NetBSD: Makefile,v 1.10 1999/04/05 03:35:24 cgd Exp $
|
||||
|
||||
PROG= setnetbootinfo
|
||||
BINDIR= /usr/mdec
|
||||
|
||||
MKMAN= no
|
||||
|
||||
CFLAGS+= -g -I${.CURDIR}/../..
|
||||
LDSTATIC?=-static
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user