opnsense-ports/sysutils/devcpu-data/files/Makefile
Franco Fichtner ac3069d409 sysutils/devcpu-data: sync with upstream
Taken from: HardenedBSD
2018-05-23 07:12:50 +02:00

20 lines
427 B
Makefile

# $FreeBSD$
INTEL_UCODE= 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