summaryrefslogtreecommitdiff
path: root/external/bsd/elftoolchain/common/sys/Makefile
blob: 34aff457095e26719c787a7145eca8298b814b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $NetBSD: Makefile,v 1.1 2021/04/06 19:40:19 jkoshy Exp $

.include <bsd.own.mk>

TOP=	${.CURDIR}/../../dist
SRCDIR=	${TOP}/common/sys

.PATH:	${SRCDIR}

INCS=		elfdefinitions.h
INCSDIR=	/usr/include/sys

elfdefinitions.h:	elfdefinitions.m4 elfconstants.m4
	${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \
		elfdefinitions.m4 > ${.TARGET}

.PHONY:	all clean clobber depend

all depend:	elfdefinitions.h

clean clobber:
	rm -f ${INCS}

cleandepend:
	rm -f ${.OBJDIR}/.depend

.include <bsd.inc.mk>
.include <bsd.obj.mk>