Browse Source

move translation rule after modifications of CFLAGS

Steffen Jaeckel 8 years ago
parent
commit
12cf50d4e2
1 changed files with 6 additions and 6 deletions
  1. 6 6
      makefile

+ 6 - 6
makefile

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