fwcutter/make: Avoid _DEFAULT_SOURCE warning
[b43-tools.git] / fwcutter / Makefile
index 197ddef227ef868dab84cb620a16ad34f65d1d65..5a5b8ec7e16563fd5143b3db1df13f9f9fa99398 100644 (file)
@@ -1,4 +1,4 @@
-VERSION = 012
+VERSION = 019
 
 # The toolchain definitions
 CC             = cc
@@ -12,12 +12,12 @@ QUIET_DEPEND        = $(Q:@=@echo '     DEPEND   '$@;)$(CC)
 ifeq ($(C),1)
 QUIET_SPARSE   = $(Q:@=@echo '     SPARSE   '$@;)$(SPARSE)
 else
-QUIET_SPARSE   = @/bin/true
+QUIET_SPARSE   = @true
 endif
 
 PREFIX ?= /usr/local
 CFLAGS         ?= -Os -fomit-frame-pointer
-CFLAGS         += -std=c99 -Wall -pedantic -D_BSD_SOURCE
+CFLAGS         += -std=c99 -Wall -pedantic -D_BSD_SOURCE -D_DEFAULT_SOURCE
 LDFLAGS                ?=
 
 SRCS = fwcutter.c md5.c
@@ -35,7 +35,7 @@ OBJS = $(sort $(patsubst %.c,obj/%.o,$(1)))
 # Generate dependencies
 $(call DEPS,$(SRCS)): dep/%.d: %.c 
        @mkdir -p $(dir $@)
-       $(QUIET_DEPEND) -o $@.tmp -MM -MG -MT "$@ $(patsubst dep/%.d,obj/%.o,$@)" $(CFLAGS) $< && mv -f $@.tmp $@
+       $(QUIET_DEPEND) -o $@.tmp -MM -MT "$@ $(patsubst dep/%.d,obj/%.o,$@)" $(CFLAGS) $< && mv -f $@.tmp $@
 
 -include $(call DEPS,$(SRCS))