]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/readelf/Makefile
Add UPDATING entries and bump version.
[FreeBSD/FreeBSD.git] / usr.bin / readelf / Makefile
1 # $FreeBSD$
2
3 ELFTCDIR=       ${SRCTOP}/contrib/elftoolchain
4 READELFDIR=     ${ELFTCDIR}/readelf
5
6 .PATH: ${READELFDIR}
7
8 PROG=   readelf
9 SRCS=   readelf.c
10
11 LIBADD= dwarf elftc elf
12
13 CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
14
15 # This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile
16 # We need to link against the correct version of these files. One
17 # solution is to include SRCTOP/sys in the include path. This causes
18 # problems when a header file in sys depends on a file in another
19 # part of the tree, e.g. a machine dependent header.
20 #
21 SRCS+=          sys/elf32.h sys/elf64.h sys/elf_common.h
22 CLEANDIRS=      sys
23 CFLAGS+=        -I.
24 sys/elf32.h sys/elf64.h sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
25         mkdir -p ${.OBJDIR}/sys
26         ln -sf ${.ALLSRC} ${.TARGET}
27
28 .include <bsd.prog.mk>