a37289db57
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel, ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/. To avoid clashes with a build-host's header files, especially on *BSD, the host-tools versions of fdisk and disklabel search for #includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h, and bootinfo.h in a new #includes namespace, nbinclude/. That is, they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>, <nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and such. I have also updated the system headers to #include from nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
11 lines
282 B
Makefile
11 lines
282 B
Makefile
# $NetBSD: Makefile,v 1.1 2005/06/12 19:46:17 dyoung Exp $
|
|
|
|
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-fdisk
|
|
HOST_SRCDIR= sbin/fdisk
|
|
HOST_SRCS= getcap.c disklabel.c
|
|
|
|
.include "${.CURDIR}/../Makefile.disklabel"
|
|
.include "${.CURDIR}/../Makefile.host"
|
|
|
|
.PATH: ${.CURDIR}/../../lib/libc/gen
|