ソースを参照

make build process silent

Steffen Jaeckel 9 年 前
コミット
6905e4113f
2 ファイル変更9 行追加3 行削除
  1. 8 2
      makefile
  2. 1 1
      makefile.include

+ 8 - 2
makefile

@@ -223,8 +223,14 @@ testprof/$(LIBTEST):
 	cd testprof ; CFLAGS="$(CFLAGS)" LIBTEST_S=$(LIBTEST_S) CC="$(CC)" LD="$(LD)" AR="$(AR)" RANLIB="$(RANLIB)" $(MAKE)
 
 $(LIBNAME): $(OBJECTS)
-	$(AR) $(ARFLAGS) $@ $(OBJECTS)
-	$(RANLIB) $@
+ifneq ($V,1)
+	@echo "   * ${AR} $@"
+endif
+	${silent} $(AR) $(ARFLAGS) $@ $(OBJECTS)
+ifneq ($V,1)
+	@echo "   * ${RANLIB} $@"
+endif
+	${silent} $(RANLIB) $@
 
 #This rule makes the hash program included with libtomcrypt
 hashsum: library $(HASHOBJECTS)

+ 1 - 1
makefile.include

@@ -15,7 +15,7 @@ AR:=$(PREFIX)ar
 
 # Archiver [makes .a files]
 #AR=ar
-#ARFLAGS=r
+ARFLAGS:=r
 
 ifndef MAKE
   MAKE:=make