ledmon/Makefile-error-dependency.patch
Dirk Mueller dcd1092024 Accepting request 448169 from home:pluskalm:branches:Base:System
- Update to version 0.80:
  * No upstream changelog available
  * refresh Makefile-error-dependency.patch
- Drop no longer needed 0001-Recognize_bool_values_in_sysfs.patch

OBS-URL: https://build.opensuse.org/request/show/448169
OBS-URL: https://build.opensuse.org/package/show/Base:System/ledmon?expand=0&rev=16
2017-01-02 08:53:35 +00:00

60 lines
1.4 KiB
Diff

---
Makefile | 11 +++--------
src/Makefile | 6 +++---
2 files changed, 6 insertions(+), 11 deletions(-)
Index: src/Makefile
===================================================================
--- src/Makefile.orig
+++ src/Makefile
@@ -61,7 +61,7 @@ CXFLAGS=-O0 -g
CWFLAGS=-Wall
CFLAGS=$(CXFLAGS) $(CWFLAGS)
-DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE
+DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE
CPPFLAGS=$(DEFFLAGS)
ALL_CPPFLAGS=$(CPPFLAGS) -I../config
@@ -73,10 +73,10 @@ SOURCES:=$(shell find -name "*.[cC]" -pr
default: all
ledmon: $(OUTDIR)/.depend $(LEDMON_OBJECTS)
- $(CC) $(LDFLAGS) $(LDLIBS) $(LEDMON_OBJECTS) -o $@
+ $(CC) $(LDLIBS) $(LEDMON_OBJECTS) -o $@ $(LDFLAGS)
ledctl: $(OUTDIR)/.depend $(LEDCTL_OBJECTS)
- $(CC) $(LDFLAGS) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@
+ $(CC) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@ $(LDFLAGS)
$(OUTDIR)/%.o: %.c
$(CC) $(CFLAGS) $(ALL_CPPFLAGS) -c $< -o $@
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -19,20 +19,15 @@
# Installation directory
DESTDIR?=
-.PHONY: ledmon ledctl man all
+.PHONY: man all
default: all
-ledmon:
- $(MAKE) -C src ledmon
-
-ledctl:
- $(MAKE) -C src ledctl
-
man:
$(MAKE) -C doc all
-all: ledmon ledctl man
+all:
+ $(MAKE) -C src all
install: all
$(MAKE) -C src DESTDIR=$(DESTDIR) install