Commit Graph
115 Commits
Author SHA1 Message Date
Jean Delvare 0f3092ad1b Default $PREFIX is /usr/local, not /usr/local/bin.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4522 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 12:14:42 +00:00
Jean Delvare 110b165ddb Delete useless files.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4396 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-09 12:48:28 +00:00
Jean Delvare bd03b54046 Compile libsensors with -D_REENTRANT.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4339 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-03-10 18:38:16 +00:00
Mark M. Hoffman b5ff067425 Modify libsensors scanner build flags...
* add -8
When using -Cf, flex defaults to generating a 7-bit scanner instead of 8-bit.
That's a bug, since we want the scanner to handle any character.  Using -8 restores
the proper behavior.

* change -Cf to -Cfe
This allows a nice reduction in object size (from ~60KiB to ~15KiB) with almost
no impact to speed (adds < 100 cycles to scanner, where total cycles is > 1M).



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4272 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-29 21:07:24 +00:00
Mark M. Hoffman c9d758c669 Don't create lex.backup unless DEBUG is enabled.
Also, delete it during 'make clean'.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4228 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-05 14:41:34 +00:00
Mark M. Hoffman 9c3a817633 Merge scanner-opt-branch (r4121:r4221) to trunk.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4222 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-26 11:50:27 +00:00
Rudolf Marek c9bd83748b Fix the homepage address
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4157 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-17 21:01:35 +00:00
Jean Delvare f7fb55a8a8 Revert previous Makefile change (Silent errors on missing dependency files)
as it appears to break with GNU make 3.81.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4102 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-20 08:46:38 +00:00
Jean Delvare 45bc29eb71 More .PHONY targets.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4088 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-09 06:55:59 +00:00
Jean Delvare dd7848c788 Typo fix, thanks to Brian C for reporting.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4079 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-29 16:21:54 +00:00
Jean Delvare dee46838bb Makefile: Silent errors on missing dependency files.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4069 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-24 19:34:09 +00:00
Jean Delvare 688b2149dc Fix depmod on non-running kernel version. Original patch from
Peter Breitenlohner.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3283 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-04-15 07:52:59 +00:00
Jean Delvare fcc284f226 Don't grep autoconf.h on user-space targets.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3259 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-23 22:58:52 +00:00
Mark M. Hoffman a116313d54 (mmh)
This patch makes optional the sysfs support in libsensors.  The default is to
*disable* sysfs support if a 2.4.x kernel is detected, for all other versions,
support will be enabled.  This can be overridden in the top-level Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3096 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:39:53 +00:00
Jean Delvare 51c7b3d4d9 Drop -W, sensord warns too much with it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3087 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:35 +00:00
Jean Delvare 1c9823cffd Compile userspace tools with -W.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3083 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:38:45 +00:00
Jean Delvare 401d48d27f Compile user-space programs with -Wundef.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3069 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:12:17 +00:00
Jean Delvare 875648566d Cleanups. Original patch from Jim Cromie.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3046 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-24 15:48:52 +00:00
Jean Delvare 7daaa8bcda Detect 2.6+ kernels and check targets. Original patch by Jim
Cromie.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3045 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-24 15:41:02 +00:00
Jean Delvare 0afe020cf1 Compile kernel modules with -fno-strict-aliasing on all
architectures. This prevents warnings in kernel header files.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2935 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-19 11:18:17 +00:00
Jean Delvare 9611f9a935 Set proper compiler flags for mips, sparc32, sparc64.
Patch by Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2928 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-11 20:51:35 +00:00
Jean Delvare 7c3a80b6fc Kill outdated code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2893 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-07 19:58:57 +00:00
Mark D. Studebaker e56ac93190 add prog/pwm manpages to $MANPAGES;
also add userpackage target, which makes lm-sensors-user-x.y.z.tar.gz.
      This has pretty much what a userspace-only package would need,
      but the user-only makefile needs work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2880 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-29 15:55:20 +00:00
Jean Delvare e3ff8201b2 Kernel module compatibility issues are hopefully gone.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2785 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-04 21:19:59 +00:00
Jean Delvare 7ca0a7018d Make ETCDIR available to compiled programs.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2766 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-21 19:19:21 +00:00
Mark D. Studebaker be21b1fdaa spoof LOGNAME and HOSTNAME when making html man pages
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2648 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-07-24 19:15:09 +00:00
Jean Delvare e7e4c799da Implement "make user_uninstall". Original patch contributed by
Rudolf Marek.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2604 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-20 14:18:28 +00:00
Jean Delvare 267b92db0d Do not run depmod on staged installs. Give hints instead.
Patch by Peter Breitenlohner.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2464 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-21 18:44:20 +00:00
Mark D. Studebaker af334e9f99 add manhtml target to generate html man pages for copying to the website
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2449 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-18 03:37:28 +00:00
Jean Delvare e0fc13aa32 Move note about sensors.conf from install to install_user.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2273 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-06 18:23:17 +00:00
Jean Delvare 17abdf40fa No, do not ignore errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2272 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-06 17:35:43 +00:00
Mark D. Studebaker 74de227224 move the CC definition up so it is used in the MODPREF definition
rather than the default (cc)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2260 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-01 22:44:07 +00:00
Jean Delvare df5deeff65 Alpha MODCFLAGS change suggested by Daniel Nilsson.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2193 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-29 19:29:16 +00:00
Mark D. Studebaker 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Jean Delvare 3911c658fa rpath patch by Joerg Dorchain <joerg@dorchain.net>.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2179 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-15 20:27:31 +00:00
Jean Delvare 287b53403d Don't include dmidecode anymore.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2118 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-29 19:59:31 +00:00
Jean Delvare bd0840096c Compile with "-g -O" instead of "-O2" when DEBUG is set to 1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2103 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-29 13:13:54 +00:00
Mark D. Studebaker 320562a22b don't build module dependencies for user and user_install
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2085 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-22 02:32:30 +00:00
Mark M. Hoffman e93f810917 make it quit earlier if missing $(LINUX)/.config; also add note for
users of stock RedHat kernels


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2051 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-11 07:11:02 +00:00
Mark D. Studebaker 9e6d84d135 add dependency on the kernel .config file; quit without it
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2049 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-09 03:00:31 +00:00
Mark D. Studebaker 9728b298e3 add more programs installed in /usr/local/sbin
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2026 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-27 01:26:44 +00:00
Mark D. Studebaker fe368024cf remove COMPILE_KERNEL; was previously replaced by 'make user'
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1974 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-24 14:51:17 +00:00
Jean Delvare 283e61378a Take LINUX_HEADERS out of ALL_CPPFLAGS, use it in MODCPPFLAGS
only. This fixes compilation on PPC and possibly others.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1942 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-06 14:22:50 +00:00
Jean Delvare c4fae9925d Add two important notes about the configuration file and dmidecode
after "make install".


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1874 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-08 09:06:50 +00:00
Mark M. Hoffman 43f48c1789 use tab instead of spaces before depmod command
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1835 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-03 02:04:19 +00:00
Jean Delvare 98a5fe64bd Automatically run depmod -a after installing modules.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1828 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-02 07:56:40 +00:00
Jean Delvare 9755181f18 Armored gcc -print-search-dirs against locales.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1827 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-02 07:27:39 +00:00
Mark D. Studebaker 0948e17ee9 add new build targets 'user' and 'user_install'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1822 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 20:04:51 +00:00
Jean Delvare 2e120f8a2a Make -Wall mandatory. Add -W to optional warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1789 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:05:35 +00:00
Mark D. Studebaker b24442eed8 remove old gzipped modules;
remove old misc directory if empty


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1787 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-14 19:25:19 +00:00