[BACK]Return to bsd.syscall.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

File: [cvs.NetBSD.org] / src / share / mk / bsd.syscall.mk (download)

Revision 1.2, Thu Jan 16 01:19:46 2014 UTC (7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7, HEAD
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.1: +1 -2 lines

- Add a new bsd.host.mk that contains all the HOST_ variables extracted from
  bsd.sys.mk and bsd.own.mk
- Add protection requiring that:
	1. bsd.sys.mk is not include from other Makefiles directly
	2. bsd.own.mk must be included before bsd.sys.mk since it
	   sets variables that bsd.sys.mk uses as conditionals.

This is step 1 of removing all variable settings from bsd.sys.mk and
leaving behind only rules. This way, the structure of a standard Makefile
is:
	variable overrides

	optionally include bsd.own.mk
	optionally include bsd.endian.mk

	variable settings that use variables defined in bsd.own.mk

	include a one or more rule .mk files (such as bsd.prog.mk etc)

# $NetBSD: bsd.syscall.mk,v 1.2 2014/01/16 01:19:46 christos Exp $
#
.include <bsd.own.mk>

SYSCALL_OBJS?=	${SYSCALL_PREFIX}_sysent.c ${SYSCALL_PREFIX}_syscalls.c \
	${SYSCALL_PREFIX}_syscall.h ${SYSCALL_PREFIX}_syscallargs.h

SYSCALL_DEPS?=	${NETBSDSRCDIR}/sys/kern/makesyscalls.sh \
	syscalls.conf syscalls.master

all: ${SYSCALL_OBJS}

${SYSCALL_OBJS}: ${SYSCALL_DEPS}
	${HOST_SH} ${.ALLSRC}

.include <bsd.kinc.mk>