--- 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