NetBSD/tools/libdwarf/Makefile

54 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2013/01/17 22:25:36 christos Exp $
HOSTLIB=dwarf
.include <bsd.own.mk>
SRCS= dwarf_abbrev.c \
dwarf_attr.c \
dwarf_attrval.c \
dwarf_cu.c \
dwarf_dealloc.c \
dwarf_die.c \
dwarf_dump.c \
dwarf_errmsg.c \
dwarf_errno.c \
dwarf_finish.c \
dwarf_form.c \
dwarf_func.c \
dwarf_init.c \
dwarf_loc.c
LIBDWARF_DIR= ${.CURDIR}/../../external/bsd/libdwarf/dist
LIBELF_DIR= ${.CURDIR}/../../external/bsd/libelf/dist
INCS= dwarf.h libdwarf.h
INCSDIR= /usr/include
.ifndef NOCOMPATLIB
COMPATLIB_NO_LIB= yes # only the include files, not the library
.-include "${TOOLDIR}/share/compat/defs.mk"
.endif
CPPFLAGS+= -I${.CURDIR}/../compat -I${LIBDWARF_DIR} -I${LIBELF_DIR}
BUILD_OSTYPE!= uname -s
# Disable use of pre-compiled headers on Darwin.
.if ${BUILD_OSTYPE} == "Darwin"
CPPFLAGS+= -no-cpp-precomp
.endif
# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
# other file ops, on many systems, without changing function names.
CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
.PATH: ${LIBDWARF_DIR}
HOST_CPPFLAGS:= ${CPPFLAGS} ${HOST_CPPFLAGS}
CPPFLAGS:= # empty
.include "${.CURDIR}/../Makefile.nbincludes"
.include <bsd.hostlib.mk>