Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/readelf/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain | ELFTCDIR= ${SRCTOP}/contrib/elftoolchain | ||||
READELFDIR= ${ELFTCDIR}/readelf | READELFDIR= ${ELFTCDIR}/readelf | ||||
.PATH: ${READELFDIR} | .PATH: ${READELFDIR} | ||||
PROG= readelf | PROG= readelf | ||||
SRCS= readelf.c | SRCS= readelf.c | ||||
LIBADD= dwarf elftc elf | LIBADD= dwarf elftc elf z | ||||
.if ${MK_CASPER} != "no" | .if ${MK_CASPER} != "no" | ||||
LIBADD+= casper | LIBADD+= casper | ||||
LIBADD+= cap_fileargs | LIBADD+= cap_fileargs | ||||
CFLAGS+= -DWITH_CASPER | CFLAGS+= -DWITH_CASPER | ||||
emaste: we want to add libz with or without `MK_CASPER` | |||||
.endif | .endif | ||||
CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common | CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common | ||||
# This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile | # This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile | ||||
# We need to link against the correct version of these files. One | # We need to link against the correct version of these files. One | ||||
# solution is to include SRCTOP/sys in the include path. This causes | # solution is to include SRCTOP/sys in the include path. This causes | ||||
# problems when a header file in sys depends on a file in another | # problems when a header file in sys depends on a file in another | ||||
Show All 10 Lines |
we want to add libz with or without MK_CASPER