]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/readelf/Makefile
Add missing break statements in r351004.
[FreeBSD/FreeBSD.git] / usr.bin / readelf / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 ELFTCDIR=       ${SRCTOP}/contrib/elftoolchain
6 READELFDIR=     ${ELFTCDIR}/readelf
7
8 .PATH: ${READELFDIR}
9
10 PROG=   readelf
11 SRCS=   readelf.c
12
13 LIBADD= dwarf elftc elf
14
15 .if ${MK_CASPER} != "no"
16 LIBADD+=        casper
17 LIBADD+=        cap_fileargs
18 CFLAGS+=        -DWITH_CASPER
19 .endif
20
21 CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
22
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.
28 #
29 SRCS+=          sys/elf32.h sys/elf64.h sys/elf_common.h
30 CLEANDIRS=      sys
31 CFLAGS+=        -I.
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}
35
36 .include <bsd.prog.mk>