root/lm-sensors/branches/lm-sensors-3.0.0/prog/dump/Module.mk @ 5163

Revision 5163, 2.6 KB (checked in by khali, 6 years ago)

Patch from Aurelien Jarno:

I have just noticed that the FSF address is the old one in all files
except COPYING. Please find a patch below to fix that.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#  Module.mk - Makefile for a Linux module for reading sensor data.
2#  Copyright (c) 1998, 1999  Frodo Looijaard <frodol@dds.nl>
3#
4#  This program is free software; you can redistribute it and/or modify
5#  it under the terms of the GNU General Public License as published by
6#  the Free Software Foundation; either version 2 of the License, or
7#  (at your option) any later version.
8#
9#  This program is distributed in the hope that it will be useful,
10#  but WITHOUT ANY WARRANTY; without even the implied warranty of
11#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12#  GNU General Public License for more details.
13#
14#  You should have received a copy of the GNU General Public License
15#  along with this program; if not, write to the Free Software
16#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17#  MA 02110-1301 USA.
18
19# Note that MODULE_DIR (the directory in which this file resides) is a
20# 'simply expanded variable'. That means that its value is substituted
21# verbatim in the rules, until it is redefined.
22MODULE_DIR := prog/dump
23PROGDUMPDIR := $(MODULE_DIR)
24
25PROGDUMPMAN8DIR := $(MANDIR)/man8
26PROGDUMPMAN8FILES := $(MODULE_DIR)/isadump.8 $(MODULE_DIR)/isaset.8
27
28# Regrettably, even 'simply expanded variables' will not put their currently
29# defined value verbatim into the command-list of rules...
30PROGDUMPTARGETS := $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
31PROGDUMPSOURCES := $(MODULE_DIR)/util.c $(MODULE_DIR)/isadump.c \
32                   $(MODULE_DIR)/isaset.c $(MODULE_DIR)/superio.c
33PROGDUMPBININSTALL := $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
34
35# Include all dependency files. We use '.rd' to indicate this will create
36# executables.
37INCLUDEFILES += $(PROGDUMPSOURCES:.c=.rd)
38
39REMOVEDUMPBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SBINDIR)/%,$(PROGDUMPBININSTALL))
40REMOVEDUMPMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGDUMPMAN8DIR)/%,$(PROGDUMPMAN8FILES))
41
42all-prog-dump: $(PROGDUMPTARGETS)
43user :: all-prog-dump
44
45$(MODULE_DIR)/isadump: $(MODULE_DIR)/isadump.ro $(MODULE_DIR)/superio.ro $(MODULE_DIR)/util.ro
46        $(CC) $(EXLDFLAGS) -o $@ $^
47
48$(MODULE_DIR)/isaset: $(MODULE_DIR)/isaset.ro $(MODULE_DIR)/util.ro
49        $(CC) $(EXLDFLAGS) -o $@ $^
50
51install-prog-dump: all-prog-dump
52        $(MKDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(PROGDUMPMAN8DIR)
53        $(INSTALL) -m 755 $(PROGDUMPBININSTALL) $(DESTDIR)$(SBINDIR)
54        $(INSTALL) -m 644 $(PROGDUMPMAN8FILES) $(DESTDIR)$(PROGDUMPMAN8DIR)
55user_install :: install-prog-dump
56
57user_uninstall::
58        $(RM) $(REMOVEDUMPBIN)
59        $(RM) $(REMOVEDUMPMAN)
60
61clean-prog-dump:
62        $(RM) $(PROGDUMPDIR)/*.rd $(PROGDUMPDIR)/*.ro $(PROGDUMPTARGETS)
63clean :: clean-prog-dump
Note: See TracBrowser for help on using the browser.