Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/elfcopy/Makefile
Show All 22 Lines | |||||
CFLAGS+=-DWITH_PE=1 | CFLAGS+=-DWITH_PE=1 | ||||
MAN= ${PROG}.1 strip.1 | MAN= ${PROG}.1 strip.1 | ||||
LINKS= ${BINDIR}/${PROG} ${BINDIR}/strip | LINKS= ${BINDIR}/${PROG} ${BINDIR}/strip | ||||
# This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile | # This same hack is in lib/libelf/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 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 | ||||
# part of the tree, e.g. a machine dependent header. | # part of the tree, e.g. a machine dependent header. | ||||
# | # | ||||
SRCS+= sys/elf_common.h | SRCS+= sys/elf_common.h | ||||
CLEANDIRS= sys | CLEANDIRS= sys | ||||
CFLAGS+= -I. | CFLAGS+= -I. | ||||
sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA | sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA | ||||
mkdir -p ${.OBJDIR}/sys | mkdir -p ${.OBJDIR}/sys | ||||
ln -sf ${.ALLSRC} ${.TARGET} | ln -sf ${.ALLSRC} ${.TARGET} | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |