2013-12-06 11:52:18 +01:00
|
|
|
Index: ledmon-0.79/src/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- ledmon-0.79.orig/src/Makefile
|
|
|
|
+++ ledmon-0.79/src/Makefile
|
2015-07-14 09:36:18 +02:00
|
|
|
@@ -56,7 +56,7 @@ LEDCTL_OBJECTS=\
|
|
|
|
$(OBJECTS)
|
|
|
|
|
|
|
|
CFLAGS=-O0 -g -Wall
|
|
|
|
-DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE
|
|
|
|
+DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE
|
|
|
|
INCFLAGS=-I../config
|
|
|
|
LDFLAGS=-O0 -g $(DEFFLAGS) -lsgutils2
|
|
|
|
|
2013-12-06 11:52:18 +01:00
|
|
|
@@ -65,10 +65,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) $(DEFFLAGS) $(INCFLAGS) -c $< -o $@
|