1 # SPDX-License-Identifier: GPL-2.0 2 # Makefile for x86/kcpuid tool 3 4 kcpuid : kcpuid.c 5 6 CFLAGS = -Wextra 7 8 BINDIR ?= /usr/sbin 9 10 HWDATADIR ?= /usr/share/misc/ 11 12 override CFLAGS += -O2 -Wall -I../../../includ 13 14 %: %.c 15 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 16 17 .PHONY : clean 18 clean : 19 @rm -f kcpuid 20 21 install : kcpuid 22 install -d $(DESTDIR)$(BINDIR) $(DEST 23 install -m 755 -p kcpuid $(DESTDIR)$(B 24 install -m 444 -p cpuid.csv $(DESTDIR)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.