48aaf27bca
and also bump the version in the mtree files.
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PROG_CXX= llvm-objcopy
|
|
|
|
SRCDIR= llvm/tools/llvm-objcopy
|
|
SRCS+= Buffer.cpp
|
|
SRCS+= COFF/COFFObjcopy.cpp
|
|
SRCS+= COFF/Object.cpp
|
|
SRCS+= COFF/Reader.cpp
|
|
SRCS+= COFF/Writer.cpp
|
|
SRCS+= CopyConfig.cpp
|
|
SRCS+= ELF/ELFConfig.cpp
|
|
SRCS+= ELF/ELFObjcopy.cpp
|
|
SRCS+= ELF/Object.cpp
|
|
SRCS+= MachO/MachOLayoutBuilder.cpp
|
|
SRCS+= MachO/MachOObjcopy.cpp
|
|
SRCS+= MachO/MachOReader.cpp
|
|
SRCS+= MachO/MachOWriter.cpp
|
|
SRCS+= MachO/Object.cpp
|
|
SRCS+= llvm-objcopy.cpp
|
|
SRCS+= wasm/Object.cpp
|
|
SRCS+= wasm/Reader.cpp
|
|
SRCS+= wasm/WasmObjcopy.cpp
|
|
SRCS+= wasm/Writer.cpp
|
|
|
|
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
|
|
|
|
CFLAGS+= -I${.OBJDIR}
|
|
CFLAGS+= -I${LLVM_BASE}/${SRCDIR}
|
|
|
|
.include "${SRCTOP}/lib/clang/llvm.build.mk"
|
|
|
|
.for hdr in InstallNameToolOpts ObjcopyOpts StripOpts
|
|
${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td
|
|
${LLVM_TBLGEN} -gen-opt-parser-defs \
|
|
-I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \
|
|
-d ${.TARGET}.d -o ${.TARGET} ${LLVM_BASE}/${SRCDIR}/${hdr}.td
|
|
TGHDRS+= ${hdr}.inc
|
|
.endfor
|
|
|
|
DEPENDFILES+= ${TGHDRS:C/$/.d/}
|
|
DPSRCS+= ${TGHDRS}
|
|
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
|
|
|
|
LIBDEPS+= llvm
|
|
|
|
.for lib in ${LIBDEPS}
|
|
DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
|
|
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
|
|
.endfor
|
|
|
|
PACKAGE= clang
|
|
|
|
LIBADD+= execinfo
|
|
LIBADD+= ncursesw
|
|
LIBADD+= pthread
|
|
LIBADD+= z
|
|
|
|
.include <bsd.prog.mk>
|