1 # tools/power/acpi/Makefile.rules - ACPI tool Makefile
3 # Copyright (c) 2015, Intel Corporation
4 # Author: Lv Zheng <lv.zheng@intel.com>
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
11 $(OUTPUT)$(TOOL): $(TOOL_OBJS) FORCE
13 $(QUIET) $(LD) $(CFLAGS) $(LDFLAGS) $(TOOL_OBJS) -L$(OUTPUT) -o $@
14 $(QUIET) $(STRIPCMD) $@
18 $(QUIET) $(CC) -c $(CFLAGS) -o $@ $<
22 -find $(OUTPUT) \( -not -type d \) \
23 -and \( -name '*~' -o -name '*.[oas]' \) \
26 -rm -f $(OUTPUT)$(TOOL)
29 $(INSTALL) -d $(DESTDIR)${sbindir}
30 $(INSTALL_PROGRAM) $(OUTPUT)$(TOOL) $(DESTDIR)${sbindir}
32 - rm -f $(DESTDIR)${sbindir}/$(TOOL)
34 install: all install-tools $(EXTRA_INSTALL)
35 uninstall: uninstall-tools $(EXTRA_UNINSTALL)