Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/readelf/Makefile
Show All 9 Lines | |||||
PROG= readelf | PROG= readelf | ||||
SRCS= readelf.c | SRCS= readelf.c | ||||
LIBADD= dwarf elftc elf | LIBADD= dwarf elftc elf | ||||
.if ${MK_CASPER} != "no" | .if ${MK_CASPER} != "no" | ||||
LIBADD+= casper | LIBADD+= casper | ||||
LIBADD+= cap_fileargs | LIBADD+= cap_fileargs | ||||
LIBADD+= z | |||||
emaste: we want to add libz with or without `MK_CASPER` | |||||
CFLAGS+= -DWITH_CASPER | CFLAGS+= -DWITH_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 | ||||
Show All 11 Lines |
we want to add libz with or without MK_CASPER