[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH] Makefile



From: Max Reitz <max@xxxxxxxxxx>

* Use C99 (better: gnu99) instead of implicit C89
* Ignore errors upon make clean

Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 3d60c79..5360efb 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ SRCS = $(shell find -name '*.c')
 OBJS = $(addsuffix .o,$(basename $(SRCS)))
 
 CC = gcc
-CFLAGS = -m32 -Wall -g -I include -Werror -D_GNU_SOURCE
+CFLAGS = -m32 -Wall -g -I include -Werror -D_GNU_SOURCE -std=gnu99
 
 run_command = $(if $(V),$(2),@echo $(1);$(2))
 
@@ -12,7 +12,7 @@ all: $(OBJS)
 	$(call run_command,"CC $^",$(CC) $(CFLAGS) $(addprefix -I,$(addprefix $(dir $^),. include)) -c -o $@ $^)
 
 clean:
-	rm $(OBJS)
+	-rm $(OBJS) 2> /dev/null
 
 doc:
 	for lang in german english; do \
-- 
1.6.4.2