diff options
author | Bobby Powers <bpowers@forio.com> | 2010-11-15 22:25:53 (GMT) |
---|---|---|
committer | Michael Stone <michael@laptop.org> | 2010-12-19 00:09:33 (GMT) |
commit | 3ad943b66da16724aaf8023b5ebac966c205b409 (patch) | |
tree | 27ed011861c1019f11f6093707c7bada7e114b7e | |
parent | b290000d6c460f7597f93c75f9882027b88fdfcf (diff) |
build: prettify make outputbp/build
-rw-r--r-- | nss/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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,$@ $^ |