1# tools/power/acpi/tools/acpidump/Makefile - ACPI tool Makefile
2#
3# Copyright (c) 2015, Intel Corporation
4#   Author: Lv Zheng <lv.zheng@intel.com>
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; version 2
9# of the License.
10
11include ../../Makefile.config
12
13TOOL = acpidump
14EXTRA_INSTALL = install-man
15EXTRA_UNINSTALL = uninstall-man
16
17vpath %.c \
18	../../../../../drivers/acpi/acpica\
19	./\
20	../../common\
21	../../os_specific/service_layers
22CFLAGS += -DACPI_DUMP_APP -I.
23TOOL_OBJS = \
24	apdump.o\
25	apfiles.o\
26	apmain.o\
27	osunixdir.o\
28	osunixmap.o\
29	osunixxf.o\
30	tbprint.o\
31	tbxfroot.o\
32	utascii.o\
33	utbuffer.o\
34	utdebug.o\
35	utexcep.o\
36	utglobal.o\
37	uthex.o\
38	utmath.o\
39	utnonansi.o\
40	utprint.o\
41	utstring.o\
42	utstrsuppt.o\
43	utstrtoul64.o\
44	utxferror.o\
45	oslinuxtbl.o\
46	cmfsize.o\
47	getopt.o
48
49include ../../Makefile.rules
50
51install-man: $(srctree)/man/acpidump.8
52	$(ECHO) "  INST    " acpidump.8
53	$(QUIET) $(INSTALL_DATA) -D $< $(DESTDIR)$(mandir)/man8/acpidump.8
54uninstall-man:
55	$(ECHO) "  UNINST  " acpidump.8
56	$(QUIET) rm -f $(DESTDIR)$(mandir)/man8/acpidump.8
57