Makefile (a35f04fba2ebb8f86d4cbdc710c89a094572b08e) Makefile (802c2095b5a6dcf0f63c473cbba1e40445e9052a)
1# $FreeBSD$
2
1# $FreeBSD$
2
3.include <src.opts.mk>
4
3ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
4READELFDIR= ${ELFTCDIR}/readelf
5
6.PATH: ${READELFDIR}
7
8PROG= readelf
9SRCS= readelf.c
10
11LIBADD= dwarf elftc elf
12
5ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
6READELFDIR= ${ELFTCDIR}/readelf
7
8.PATH: ${READELFDIR}
9
10PROG= readelf
11SRCS= readelf.c
12
13LIBADD= dwarf elftc elf
14
15.if ${MK_CASPER} != "no"
16LIBADD+= casper
17LIBADD+= cap_fileargs
18CFLAGS+= -DWITH_CASPER
19.endif
20
13CFLAGS+=-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#
21SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h
22CLEANDIRS= sys
23CFLAGS+= -I.
24sys/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>
21CFLAGS+=-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#
29SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h
30CLEANDIRS= sys
31CFLAGS+= -I.
32sys/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>