1 # Commonly used generation targets
3 llvm/Support/DataTypes.h: ${TOP_LLVM}/include/llvm/Support/DataTypes.h.cmake
5 sed -e 's|#cmakedefine|#define|' \
6 -e 's|$${HAVE_INTTYPES_H}|1|' \
7 -e 's|$${HAVE_STDINT_H}|1|' \
8 -e 's|$${HAVE_UINT64_T}|1|' \
9 -e 's|$${HAVE_U_INT64_T}|1|' ${.ALLSRC} > ${.TARGET}
11 .for X in config.h llvm-config.h
12 llvm/Config/${X}: ${.CURDIR}/../../block1/configuration/${X}
14 cp ${.ALLSRC} ${.TARGET}
17 DEFS= Targets/LLVM_TARGET \
18 AsmPrinters/LLVM_ASM_PRINTER \
19 Disassemblers/LLVM_DISASSEMBLER \
20 AsmParsers/LLVM_ASM_PARSER
23 llvm/Config/${D:H}.def:
25 @echo "#ifndef ${D:T}" > ${.TARGET}
26 @echo "# error Please define the macro ${D:T}(TargetName)" >> ${.TARGET}
27 @echo "#endif" >> ${.TARGET}
29 @echo "${D:T}(X86)" >> ${.TARGET}
30 .if "${D:H}" == "Targets"
31 @echo "${D:T}(CppBackend)" >> ${.TARGET}
33 .if defined(CLANG_EXTRA_TARGETS)
34 . if ${CLANG_EXTRA_TARGETS:MAArch64}
35 @echo "${D:T}(AArch64)" >> ${.TARGET}
37 . if ${CLANG_EXTRA_TARGETS:MAMDGPU}
38 . if "${D:H}" != "Disassemblers"
39 @echo "${D:T}(AMDGPU)" >> ${.TARGET}
42 . if ${CLANG_EXTRA_TARGETS:MARM}
43 @echo "${D:T}(ARM)" >> ${.TARGET}
45 . if ${CLANG_EXTRA_TARGETS:MMips}
46 @echo "${D:T}(Mips)" >> ${.TARGET}
48 . if ${CLANG_EXTRA_TARGETS:MPowerPC}
49 @echo "${D:T}(PowerPC)" >> ${.TARGET}
53 @echo "#undef ${D:T}" >> ${.TARGET}
54 @echo "${D:H}.def created."