use merged ctf rules

This commit is contained in:
christos 2014-03-09 17:05:23 +00:00
parent abe7c4c08a
commit 7016e57516
3 changed files with 10 additions and 60 deletions

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.4 2013/01/18 19:58:43 christos Exp $
# $NetBSD: Makefile,v 1.5 2014/03/09 17:05:23 christos Exp $
# $FreeBSD: src/cddl/usr.bin/ctfconvert/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
.include <bsd.own.mk>
.include "../../Makefile.inc"
.include "../../Makefile.ctf"
DEBUG_FLAGS= -g
@ -31,28 +32,5 @@ SRCS= alist.c \
traverse.c \
util.c
CFLAGS+= -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 \
-g
.ifndef HOSTPROG
LIBCTF_OBJDIR!= cd ${.CURDIR}/../../lib/libctf && ${PRINTOBJDIR}
LDADD+= -L${OSNETDIR}/lib/libctf \
-L${NETBSDSRCDIR}/external/bsd/libdwarf/lib \
-L${NETBSDSRCDIR}/external/bsd/libelf/lib \
-L${LIBCTF_OBJDIR}
LDADD+= -lctf -ldwarf -lelf -lz
.endif
.PATH: ${.CURDIR}
.PATH: ${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common
.PATH: ${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt
.include <bsd.prog.mk>

View File

@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.4 2013/01/18 19:58:44 christos Exp $
# $NetBSD: Makefile,v 1.5 2014/03/09 17:05:23 christos Exp $
# $FreeBSD: src/cddl/usr.bin/ctfdump/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
.include "../../Makefile.inc"
.include "../../Makefile.ctf"
PROG= ctfdump
@ -10,22 +11,7 @@ SRCS= dump.c \
symbol.c \
utils.c
CFLAGS+= -I${OSNETDIR}/sys \
-I${OSNETDIR}/include \
-I${OPENSOLARIS_USR_DISTDIR} \
-I${OPENSOLARIS_SYS_DISTDIR} \
-I${OPENSOLARIS_USR_DISTDIR}/head \
-I${OPENSOLARIS_USR_DISTDIR}/cmd/mdb/tools/common \
-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \
-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
-I${NETBSDSRCDIR}/external/bsd/libelf/dist
LDFLAGS+= -pthread
LDADD+= -L${NETBSDSRCDIR}/external/bsd/libelf/lib
LDADD+= -lelf -lz
.PATH: ${.CURDIR}/../../dist/tools/ctf/common
.PATH: ${.CURDIR}/../../dist/tools/ctf/dump
LDADD+=-lpthread
DPADD+=${LIBPTHREAD}
.include <bsd.prog.mk>

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.4 2013/01/18 19:58:44 christos Exp $
# $NetBSD: Makefile,v 1.5 2014/03/09 17:05:23 christos Exp $
# $FreeBSD: src/cddl/usr.bin/ctfmerge/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
.include <bsd.own.mk>
.include "../../Makefile.inc"
.include "../../Makefile.ctf"
PROG= ctfmerge
@ -26,22 +27,7 @@ SRCS= alist.c \
traverse.c \
util.c
CFLAGS+= -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 \
.ifndef HOSTPROG
LIBCTF_OBJDIR!= cd ${.CURDIR}/../../lib/libctf && ${PRINTOBJDIR}
LDADD+= -L${LIBCTF_OBJDIR} -lctf
LDADD+= -ldwarf -lelf -lz -lpthread
.endif
.PATH: ${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common
.PATH: ${OPENSOLARIS_USR_DISTDIR}/tools/ctf/cvt
LDADD+=-lrt -lpthread
DPADD+=${LIBRT} ${LIBPTHREAD}
.include <bsd.prog.mk>