Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libelf/Makefile
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
# This same hack is in lib/libdwarf/Makefile and usr.bin/readelf/Makefile | # This same hack is in lib/libdwarf/Makefile and usr.bin/readelf/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 ../../sys in the include path. This causes | # solution is to include ../../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 | ||||
# part of the tree, e.g. a machine dependent header. | # part of the tree, e.g. a machine dependent header. | ||||
# | # | ||||
SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h | SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h | ||||
# Allow bootstrapping elftoolchain on Linux: | |||||
.if defined(BOOTSTRAPPING) && ${.MAKE.OS} == "Linux" | |||||
native-elf-format.h: | |||||
${ELFTCDIR}/common/native-elf-format > ${.TARGET} || rm ${.TARGET} | |||||
SRCS+= native-elf-format.h | |||||
.endif | |||||
GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c | GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c | ||||
CLEANFILES= ${GENSRCS} | CLEANFILES= ${GENSRCS} | ||||
CLEANDIRS= sys | CLEANDIRS= sys | ||||
CFLAGS+= -I. -I${SRCDIR} -I${ELFTCDIR}/common | CFLAGS+= -I. -I${SRCDIR} -I${ELFTCDIR}/common | ||||
sys/elf32.h sys/elf64.h sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA | sys/elf32.h sys/elf64.h sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA | ||||
mkdir -p ${.OBJDIR}/sys | mkdir -p ${.OBJDIR}/sys | ||||
ln -sf ${.ALLSRC} ${.TARGET} | ln -sf ${.ALLSRC} ${.TARGET} | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |