From 3ad943b66da16724aaf8023b5ebac966c205b409 Mon Sep 17 00:00:00 2001 From: Bobby Powers Date: Mon, 15 Nov 2010 22:25:53 +0000 Subject: build: prettify make output --- diff --git a/nss/Makefile b/nss/Makefile index f16609e..17600a1 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -26,6 +26,14 @@ TEST_FORMAT_BUF_OBJS = test_format_buf.o buf.o ALL_OBJS = $(RAINBOW_OBJS) $(UIDS_OBJS) $(GIDS_OBJS) $(TEST_SLIST_OBJS) $(TEST_NAT_OBJS) BINARIES = libnss_rainbow.so.2 uids gids test_slist test_nat test_endgrent test_format_buf +# if you invoke make as 'make V=1' it will verbosely report on what it +# is doing, otherwise it defaults to quiet/pretty mode, which makes +# errors _much_ easier to see +ifneq ($V, 1) +MAKEFLAGS = -s +endif + + # targets all: $(BINARIES) @@ -39,30 +47,38 @@ install: # objects %.o: %.c + @echo " CC $@" $(CC) $(ALLCFLAGS) -c -o $@ $< # linked binaries test_endgrent: $(TEST_ENDGRENT_OBJS) + @echo " LD $@" $(CC) $(ALLCFLAGS) -o $@ $^ test_slist: $(TEST_SLIST_OBJS) + @echo " LD $@" $(CC) $(ALLCFLAGS) -o $@ $^ test_nat: $(TEST_NAT_OBJS) + @echo " LD $@" $(CC) $(ALLCFLAGS) -o $@ $^ test_format_buf: $(TEST_FORMAT_BUF_OBJS) + @echo " LD $@" $(CC) $(ALLCFLAGS) -o $@ $^ uids: $(UIDS_OBJS) + @echo " LD $@" $(CC) $(ALLCFLAGS) -o $@ $^ gids: $(GIDS_OBJS) + @echo " LD $@" $(CC) $(ALLCFLAGS) -o $@ $^ libnss_rainbow.so.2: $(RAINBOW_OBJS) + @echo " LD $@" $(CC) -shared $(LDFLAGS) -o $@ -Wl,-soname,$@ $^ -- cgit v0.9.1