freebsd-ports/sysutils/devcpu-data/files/Makefile
Sean Bruno 38c41132b0 sysutils/devcpu-data: respect CC
No need to bump PORTREVISION as this only fixes a build that never
worked before this commit.

PR: 257459
Reported by: evgeniy@khramtsov.org
2021-07-30 14:53:48 -06:00

18 lines
475 B
Makefile

INTEL_UCODE= Intel-Linux-Processor-Microcode-Data-Files-%%GH_TAGNAME%%/intel-ucode
OUTPUT_DIR= mcodes
all: ucode
ucode: ucode-split
mkdir -p $(OUTPUT_DIR)
cd ${OUTPUT_DIR} && \
for file in \
../${INTEL_UCODE}/[0-9,a-f][0-9,a-f]-[0-9,a-f][0-9,a-f]-[0-9,a-f][0-9,a-f]; do \
../ucode-split $$file; \
done
# Use the host cc to compile ucode-split in case of cross-compile
ucode-split: ucode-split.c
${CC} ucode-split.c -o $@
clean:
rm -rf $(OUTPUT_DIR) ucode-split