2002-01-02 08:21:34 +03:00
|
|
|
# $NetBSD: Makefile,v 1.24 2002/01/02 05:21:34 mrg Exp $
|
2001-12-12 15:24:19 +03:00
|
|
|
|
|
|
|
NOMAN= # defined
|
1998-03-02 22:57:00 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1995-09-17 03:20:22 +04:00
|
|
|
|
1999-04-28 19:22:25 +04:00
|
|
|
WARNS?=1
|
|
|
|
PROG= installboot
|
2001-12-04 21:54:34 +03:00
|
|
|
SRCS= installboot.c byteorder.c loadfile.c loadfile_aout.c loadfile_elf32.c
|
2001-12-04 14:31:10 +03:00
|
|
|
|
2001-12-04 21:54:34 +03:00
|
|
|
CPPFLAGS+=-DBOOT_AOUT -DBOOT_ELF32
|
2001-12-04 14:31:10 +03:00
|
|
|
|
1999-04-28 19:22:25 +04:00
|
|
|
CFLAGS+=-g
|
|
|
|
|
|
|
|
LIBSA=${.CURDIR}/../../../../lib/libsa
|
|
|
|
|
|
|
|
.PATH.c: ${LIBSA}
|
|
|
|
|
1999-11-29 17:49:12 +03:00
|
|
|
CPPFLAGS+=-I${LIBSA} -I.
|
2001-10-30 08:13:09 +03:00
|
|
|
CPPFLAGS+=-I${.CURDIR}/..
|
1995-10-01 00:43:35 +03:00
|
|
|
|
1998-03-02 22:57:00 +03:00
|
|
|
LDSTATIC?= -static
|
1995-09-17 03:20:22 +04:00
|
|
|
|
2002-01-02 08:21:34 +03:00
|
|
|
.if !defined(HOSTPROGNAME)
|
2001-11-22 03:14:20 +03:00
|
|
|
.if !make(obj) && !make(clean) && !make(cleandir)
|
1999-11-29 17:49:12 +03:00
|
|
|
.BEGIN:
|
2000-08-10 17:27:47 +04:00
|
|
|
@([ -h machine ] || ln -s ${.CURDIR}/../../../${MACHINE}/include machine)
|
2000-08-16 12:24:01 +04:00
|
|
|
@([ -h sparc ] || ln -s ${.CURDIR}/../../../sparc/include sparc)
|
|
|
|
.NOPATH: machine sparc
|
1999-11-29 17:49:12 +03:00
|
|
|
.endif
|
2001-11-22 03:14:20 +03:00
|
|
|
CLEANFILES+= machine sparc
|
2002-01-02 08:21:34 +03:00
|
|
|
.endif
|
1999-11-29 17:49:12 +03:00
|
|
|
|
2002-01-02 08:21:34 +03:00
|
|
|
.ifndef HOSTPROG
|
1995-09-17 03:20:22 +04:00
|
|
|
.include <bsd.prog.mk>
|
2002-01-02 08:21:34 +03:00
|
|
|
.endif
|