]> git.pld-linux.org Git - packages/lm_sensors.git/blame - lm_sensors-make.patch
- obsolete
[packages/lm_sensors.git] / lm_sensors-make.patch
CommitLineData
3105c847
JB
1--- lm_sensors-2.8.2/Makefile.orig 2003-11-29 20:59:31.000000000 +0100
2+++ lm_sensors-2.8.2/Makefile 2003-12-13 23:24:48.024643304 +0100
3@@ -183,13 +183,11 @@
6f93b642
JB
4 # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
5 # LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
55005178 6 ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS)
3105c847 7-ALL_CFLAGS := -Wall
6f93b642
JB
8+OPTS = -O2
9+ALL_CFLAGS := -Wall $(OPTS)
10
11 ifeq ($(DEBUG),1)
12 ALL_CPPFLAGS += -DDEBUG
3105c847
JB
13-ALL_CFLAGS += -O -g
14-else
15-ALL_CFLAGS += -O2
16 endif
17
18 ifeq ($(WARN),1)
19@@ -328,10 +326,10 @@
20
21 # .o files are used for modules
22 # depend on the kernel config file!
23-%.o: %.c $(LINUX)/.config
24+%.o: %.c
25 $(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@
26
27-%.d: %.c $(LINUX)/.config
28+%.d: %.c
29 $(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \
30 $(SED) -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@
31
5c651889
JB
32--- lm_sensors-2.8.5.orig/prog/rrd/Makefile 2002-01-05 16:39:17.000000000 +0100
33+++ lm_sensors-2.8.5/prog/rrd/Makefile 2003-07-25 23:17:50.000000000 +0200
6f93b642
JB
34@@ -22,7 +22,7 @@
35 sed -e "s#%%RRDPATH%%#$(RRDPATH)#g;s#%%APACHDIR%%#$(APACHDIR)#g;s#%%RRDDIR%%#$(RRDDIR)#g;s#%%MACH%%#$(MACH)#g" $< > $@
36
37 $(RRDDIR) :
38- install -d -o $(USER) $(RRDDIR)
39+ install -d $(RRDDIR)
40
41 $(RRDB) : $(RRDDIR)
42 ./sens_create_rrd $(RRDB)
5c651889 43@@ -38,7 +38,7 @@
6f93b642
JB
44 $(error error - Web server directory $(APACHE) not present - check APACHE definition in Makefile)
45
46 $(APACHDIR)/pix : $(APACHE)
47- install -d -o $(USER) -m 777 $(APACHDIR)/pix
48+ install -d -m 777 $(APACHDIR)/pix
3833b7e8 49
50 install: all $(RRDB) $(SENSDIR) $(CRONTAB) $(APACHDIR)/pix
5c651889 51 install -m 755 sens_update_rrd $(BINPATH)
This page took 0.206742 seconds and 4 git commands to generate.