aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib/drti/Makefile
blob: 57b161f74e173a60a093b4867e696abaa5e14830 (plain) (blame)
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
# $FreeBSD$

.PATH:		${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libdtrace/common

SRCS=		drti.c
FILES=		${SRCS:R:S/$/.o/g}
FILESOWN=	${LIBOWN}
FILESGRP=	${LIBGRP}
FILESMODE=	${LIBMODE}
FILESDIR=	${LIBDIR}/dtrace
CLEANFILES=	${FILES} ${FILES}.tmp

CFLAGS+=	-I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
		-I${.CURDIR}/../../../cddl/compat/opensolaris/include \
		-I${OPENSOLARIS_USR_DISTDIR}/head \
		-I${OPENSOLARIS_USR_DISTDIR}/lib/libctf/common \
		-I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \
		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
		-DPIC -fpic

.c.o:
	${CC} ${CFLAGS} -c ${.IMPSRC}
	mv ${FILES} ${FILES}.tmp
	${LD} -o ${FILES} -r ${FILES}.tmp ${LIBELF_PIC}
	rm -f ${FILES}.tmp

.include <bsd.prog.mk>