NetBSD/sys/arch/sparc/stand/installboot/Makefile

37 lines
720 B
Makefile

# $NetBSD: Makefile,v 1.24 2002/01/02 05:21:34 mrg Exp $
NOMAN= # defined
.include <bsd.own.mk>
WARNS?=1
PROG= installboot
SRCS= installboot.c byteorder.c loadfile.c loadfile_aout.c loadfile_elf32.c
CPPFLAGS+=-DBOOT_AOUT -DBOOT_ELF32
CFLAGS+=-g
LIBSA=${.CURDIR}/../../../../lib/libsa
.PATH.c: ${LIBSA}
CPPFLAGS+=-I${LIBSA} -I.
CPPFLAGS+=-I${.CURDIR}/..
LDSTATIC?= -static
.if !defined(HOSTPROGNAME)
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
@([ -h machine ] || ln -s ${.CURDIR}/../../../${MACHINE}/include machine)
@([ -h sparc ] || ln -s ${.CURDIR}/../../../sparc/include sparc)
.NOPATH: machine sparc
.endif
CLEANFILES+= machine sparc
.endif
.ifndef HOSTPROG
.include <bsd.prog.mk>
.endif