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../../../include 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) $(DESTDIR)$(HWDATADIR) 23 install -m 755 -p kcpuid $(DESTDIR)$(BINDIR)/kcpuid 24 install -m 444 -p cpuid.csv $(DESTDIR)$(HWDATADIR)/cpuid.csv
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.