GNU Linux-libre 4.9.318-gnu1
[releases.git] / tools / power / acpi / tools / acpidump / Makefile
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
11 include ../../Makefile.config
12
13 TOOL = acpidump
14 EXTRA_INSTALL = install-man
15 EXTRA_UNINSTALL = uninstall-man
16
17 vpath %.c \
18         ../../../../../drivers/acpi/acpica\
19         ./\
20         ../../common\
21         ../../os_specific/service_layers
22 CFLAGS += -DACPI_DUMP_APP -I.
23 TOOL_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         utstrtoul64.o\
43         utxferror.o\
44         oslinuxtbl.o\
45         cmfsize.o\
46         getopt.o
47
48 include ../../Makefile.rules
49
50 install-man: $(srctree)/man/acpidump.8
51         $(ECHO) "  INST    " acpidump.8
52         $(QUIET) $(INSTALL_DATA) -D $< $(DESTDIR)$(mandir)/man8/acpidump.8
53 uninstall-man:
54         $(ECHO) "  UNINST  " acpidump.8
55         $(QUIET) rm -f $(DESTDIR)$(mandir)/man8/acpidump.8