5 ELFTCDIR
= ${SRCTOP}/contrib
/elftoolchain
6 READELFDIR
= ${ELFTCDIR}/readelf
13 LIBADD
= dwarf elftc elf z
15 .if
${MK_CASPER} != "no"
18 CFLAGS
+= -DWITH_CASPER
21 CFLAGS
+=-I
${ELFTCDIR}/libelftc
-I
${ELFTCDIR}/common
23 # This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile
24 # We need to link against the correct version of these files. One
25 # solution is to include SRCTOP/sys in the include path. This causes
26 # problems when a header file in sys depends on a file in another
27 # part of the tree, e.g. a machine dependent header.
29 SRCS
+= sys
/elf32.h sys
/elf64.h sys
/elf_common.h
32 sys
/elf32.h sys
/elf64.h sys
/elf_common.h
: ${SRCTOP}/sys
/${.TARGET
} .NOMETA
33 mkdir
-p
${.OBJDIR
}/sys
34 ln
-sf
${.ALLSRC
} ${.TARGET
}
36 .
include <bsd.prog.mk
>