From d289688e58f6f1d177afc33ee3be8d2e1129e41c Mon Sep 17 00:00:00 2001 From: nsz Date: Thu, 29 Mar 2012 01:20:47 +0200 Subject: [PATCH] makefile fixes (-D_GNU_SOURCE, print build fail) --- Makefile | 2 +- Makefile.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ad17b56..0c86cef 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ DIRS = $(sort $(wildcard src/*)) all: for i in $(DIRS); do printf "%-20s" $$i; make -s -C $$i; done t: - @for i in $(DIRS); do printf "%-20s" $$i; make -s -C $$i 2>/dev/null; done + @for i in $(DIRS); do printf "%-20s" $$i; make -s -C $$i t 2>/dev/null || echo 'BUILD FAIL'; $$i/t; done b: t @for i in $(DIRS); do echo $$i; $$i/b; done clean: diff --git a/Makefile.inc b/Makefile.inc index 69de079..fa84a1b 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -9,7 +9,7 @@ OBJS = $(SRCS:.c=.o) AR=ar RANLIB=ranlib -CFLAGS += -g -D_POSIX_C_SOURCE=200809L -std=c99 -pipe -Wall -Wno-unused-function -Wno-missing-braces +CFLAGS += -g -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -std=c99 -pipe -Wall -Wno-unused-function -Wno-missing-braces LDFLAGS += -g -lpthread -lrt -lm -include $(TROOT)/config.mak -- 2.20.1