opnsense-ports/sysutils/devcpu-data/files/Makefile
Franco Fichtner 5e29a9d6b0 */*: sync with upstream
Taken from: HardenedBSD
2018-01-20 09:37:12 +01:00

14 lines
315 B
Makefile

# $FreeBSD$
INTEL_UCODE= microcode.dat
OUTPUT_DIR= mcodes
all: ucode
ucode: ucode-tool
mkdir -p $(OUTPUT_DIR)
./ucode-tool -o $(OUTPUT_DIR) -i $(INTEL_UCODE)
# Use the host cc to compile ucode-tool in case of cross-compile
ucode-tool: ucode-tool.c
cc ucode-tool.c -o $@
clean:
rm -rf $(OUTPUT_DIR) ucode-tool