NetBSD/tools/libdwarf/Makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.1 2010/02/24 21:34:57 darran Exp $
.include <bsd.own.mk>
HOSTLIB=dwarf
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_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
COMPATOBJ!= cd ${.CURDIR}/../compat && ${PRINTOBJDIR}
CPPFLAGS+= -I${COMPATOBJ}
.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}
CPPFLAGS:= # empty
.include "${.CURDIR}/../Makefile.disklabel"
.include <bsd.hostlib.mk>