Merge ctf build rules.

This commit is contained in:
christos 2014-03-09 17:05:01 +00:00
parent 381ca28d6d
commit abe7c4c08a

27
external/cddl/osnet/Makefile.ctf vendored Normal file
View File

@ -0,0 +1,27 @@
# $NetBSD: Makefile.ctf,v 1.1 2014/03/09 17:05:01 christos Exp $
CPPFLAGS+= -I${OSNETDIR}/sys \
-I${OSNETDIR}/include \
-I${OPENSOLARIS_USR_DISTDIR} \
-I${OPENSOLARIS_SYS_DISTDIR} \
-I${OPENSOLARIS_USR_DISTDIR}/head \
-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \
-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt \
-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
COPTS+=-g
.ifndef HOSTPROG
ELFTOOLCHAIN_DIR=${NETBSDSRCDIR}/external/bsd/elftoolchain
PROGDPLIBS+= ctf ${OSNETDIR}/lib/libctf \
dwarf ${ELFTOOLCHAIN_DIR}/lib/libdwarf \
elf ${ELFTOOLCHAIN_DIR}/lib/libelf
LDADD+= -lz
DPADD+= ${LIBZ}
.endif
.PATH: ${.CURDIR}
.PATH: ${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common
.PATH: ${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt