From 12cf50d4e220028e9692f5c8754d927ce66f5411 Mon Sep 17 00:00:00 2001
From: Steffen Jaeckel <s@jaeckel.eu>
Date: Fri, 5 May 2017 19:11:16 +0200
Subject: [PATCH] move translation rule after modifications of CFLAGS

---
 makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/makefile b/makefile
index 0ead01d..70f2c66 100644
--- a/makefile
+++ b/makefile
@@ -13,12 +13,6 @@ silent=@
 silent_stdout= > /dev/null
 endif
 
-%.o: %.c
-ifneq ($V,1)
-	@echo "   * ${CC} $@"
-endif
-	${silent} ${CC} ${CFLAGS} -c $< -o $@
-
 # ranlib tools
 ifndef RANLIB
 ifeq ($(PLATFORM), Darwin)
@@ -233,6 +227,12 @@ $(OBJECTS): $(HEADERS)
 $(DOBJECTS): $(HEADERS) $(THEADERS)
 $(TOBJECTS): $(HEADERS) $(THEADERS)
 
+.c.o:
+ifneq ($V,1)
+	@echo "   * ${CC} $@"
+endif
+	${silent} ${CC} ${CFLAGS} -c $< -o $@
+
 $(LIBNAME): $(OBJECTS)
 ifneq ($V,1)
 	@echo "   * ${AR} $@"