mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-09-13 09:09:01 -04:00
54 lines
1.0 KiB
Makefile
54 lines
1.0 KiB
Makefile
# $NetBSD: Makefile.bootprogs,v 1.6 2014/01/12 15:26:29 tsutsui Exp $
|
|
|
|
S= ${.CURDIR}/../../../../..
|
|
|
|
NOMAN= # defined
|
|
|
|
BINDIR= /usr/mdec
|
|
BINMODE= 0444
|
|
|
|
PRIMARY_LOAD_ADDRESS?=0x8c201000
|
|
SECONDARY_LOAD_ADDRESS?=0x8ff00000
|
|
|
|
.include <bsd.own.mk>
|
|
.include <bsd.klinks.mk>
|
|
|
|
STRIPFLAG= # override
|
|
|
|
LIBCRT0= # nothing
|
|
LIBCRTI= # nothing
|
|
LIBCRTBEGIN= # nothing
|
|
LIBCRTEND= # nothing
|
|
LIBC= # nothing
|
|
|
|
.PATH: ${.CURDIR}/..
|
|
|
|
COPTS= -m4-nofpu -Os -ffreestanding
|
|
|
|
LDFLAGS+= -N
|
|
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes
|
|
CPPFLAGS+= -nostdinc -D_STANDALONE
|
|
CPPFLAGS+= -DSH4
|
|
CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
|
|
|
|
### find out what to use for libsa
|
|
SA_AS= library
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
LIBSA= ${SALIB}
|
|
CPPFLAGS+= -I$(SADIR)
|
|
|
|
### find out what to use for libkern
|
|
KERN_AS= library
|
|
.include "${S}/lib/libkern/Makefile.inc"
|
|
LIBKERN= ${KERNLIB}
|
|
|
|
### find out what to use for libz
|
|
Z_AS= library
|
|
.include "${S}/lib/libz/Makefile.inc"
|
|
LIBZ= ${ZLIB}
|
|
|
|
cleandir distclean: .WAIT cleanlibdir
|
|
|
|
cleanlibdir:
|
|
-rm -rf lib
|