1 # SPDX-License-Identifier: GPL-2.0-only !! 1 PROG= acpidump 2 # tools/power/acpi/Makefile - ACPI tool Makefi !! 2 SRCS= acpidump.c 3 # !! 3 KERNEL_INCLUDE := ../../../include 4 # Copyright (c) 2013, Intel Corporation !! 4 CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Os -s -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE) 5 # Author: Lv Zheng <lv.zheng@intel.com> << 6 # << 7 5 8 include ../../scripts/Makefile.include !! 6 all: acpidump >> 7 $(PROG) : $(SRCS) >> 8 $(CC) $(CFLAGS) $(SRCS) -o $(PROG) 9 9 10 .NOTPARALLEL: !! 10 CLEANFILES= $(PROG) 11 11 12 all: acpidbg acpidump ec pfrut !! 12 clean : 13 clean: acpidbg_clean acpidump_clean ec_clean p !! 13 rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS)) *~ 14 install: acpidbg_install acpidump_install ec_i << 15 uninstall: acpidbg_uninstall acpidump_uninstal << 16 14 17 acpidbg acpidump ec pfrut: FORCE !! 15 install : 18 $(call descend,tools/$@,all) !! 16 install acpidump /usr/sbin/acpidump 19 acpidbg_clean acpidump_clean ec_clean pfrut_cl !! 17 install acpidump.8 /usr/share/man/man8 20 $(call descend,tools/$(@:_clean=),clea << 21 acpidbg_install acpidump_install ec_install pf << 22 $(call descend,tools/$(@:_install=),in << 23 acpidbg_uninstall acpidump_uninstall ec_uninst << 24 $(call descend,tools/$(@:_uninstall=), << 25 18 26 .PHONY: FORCE <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.