blob: 90e3d42504f35edc589dae431d59dc9e9a27dc67 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $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>
|