freebsd-ports/sysutils/devcpu-data/files/Makefile
William Grzybowski 9497c8b3c3 sysutils/devcpu-data: update to 1.1
PR:		190712
Submitted by:	Lawrence Chen
Approved by:	maintainer
2014-06-15 21:29:38 +00:00

17 lines
467 B
Makefile

AMD_UCODE_DIR= amd-ucode
AMD_UCODE= $(AMD_UCODE_DIR)/microcode_amd.bin \
$(AMD_UCODE_DIR)/microcode_amd_fam15h.bin
INTEL_UCODE= microcode.dat
OUTPUT_DIR= mcodes
all: ucode
ucode: ucode-tool
mkdir -p $(OUTPUT_DIR)
./ucode-tool -o $(OUTPUT_DIR) -i $(INTEL_UCODE)
./ucode-tool -o $(OUTPUT_DIR) -a $(AMD_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