Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / tools / power / acpi / tools / acpidump / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 # tools/power/acpi/tools/acpidump/Makefile - ACPI tool Makefile
3 #
4 # Copyright (c) 2015, Intel Corporation
5 #   Author: Lv Zheng <lv.zheng@intel.com>
6 #
7
8 include ../../Makefile.config
9
10 TOOL = acpidump
11 EXTRA_INSTALL = install-man
12 EXTRA_UNINSTALL = uninstall-man
13
14 vpath %.c \
15         ../../../../../drivers/acpi/acpica\
16         ./\
17         ../../common\
18         ../../os_specific/service_layers
19 CFLAGS += -DACPI_DUMP_APP -I.
20 TOOL_OBJS = \
21         apdump.o\
22         apfiles.o\
23         apmain.o\
24         osunixdir.o\
25         osunixmap.o\
26         osunixxf.o\
27         tbprint.o\
28         tbxfroot.o\
29         utascii.o\
30         utbuffer.o\
31         utdebug.o\
32         utexcep.o\
33         utglobal.o\
34         uthex.o\
35         utmath.o\
36         utnonansi.o\
37         utprint.o\
38         utstring.o\
39         utstrsuppt.o\
40         utstrtoul64.o\
41         utxferror.o\
42         oslinuxtbl.o\
43         cmfsize.o\
44         getopt.o
45
46 include ../../Makefile.rules
47
48 install-man: $(srctree)/man/acpidump.8
49         $(ECHO) "  INST    " acpidump.8
50         $(QUIET) $(INSTALL_DATA) -D $< $(DESTDIR)$(mandir)/man8/acpidump.8
51 uninstall-man:
52         $(ECHO) "  UNINST  " acpidump.8
53         $(QUIET) rm -f $(DESTDIR)$(mandir)/man8/acpidump.8