author | Alberto Bertogli
<albertito@gmail.com> 2007-10-11 04:14:38 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-10-11 04:29:41 UTC |
parent | a053e9a027479032a1869c4871323bda2b3850df |
libnmdb/Makefile | +9 | -2 |
nmdb/Makefile | +9 | -2 |
diff --git a/libnmdb/Makefile b/libnmdb/Makefile index 611e05d..4e197f2 100644 --- a/libnmdb/Makefile +++ b/libnmdb/Makefile @@ -27,6 +27,13 @@ PREFIX=/usr/local OBJS = libnmdb.o tcp.o tipc.o udp.o sctp.o +ifneq ($(V), 1) + NICE_CC = @echo " CC $@"; $(CC) +else + NICE_CC = $(CC) +endif + + default: all all: libs libnmdb.pc @@ -49,7 +56,7 @@ libnmdb.pc: libnmdb.skel.pc libs: libnmdb.so libnmdb.a libnmdb.so: nmdb.h $(OBJS) - $(CC) $(ALL_CFLAGS) -shared -fPIC $(OBJS) -o libnmdb.so + $(NICE_CC) $(ALL_CFLAGS) -shared -fPIC $(OBJS) -o libnmdb.so libnmdb.a: nmdb.h $(OBJS) $(AR) cr libnmdb.a $(OBJS) @@ -75,7 +82,7 @@ install: install-lib install-man .c.o: - $(CC) $(ALL_CFLAGS) -c $< -o $@ + $(NICE_CC) $(ALL_CFLAGS) -c $< -o $@ clean: rm -f nmdb.h libnmdb.pc $(OBJS) libnmdb.so libnmdb.a diff --git a/nmdb/Makefile b/nmdb/Makefile index 30ab92b..c4e8ece 100644 --- a/nmdb/Makefile +++ b/nmdb/Makefile @@ -75,15 +75,22 @@ ifeq ($(BACKEND), null) endif +ifneq ($(V), 1) + NICE_CC = @echo " CC $@"; $(CC) +else + NICE_CC = $(CC) +endif + + default: all all: nmdb nmdb: $(OBJS) - $(CC) $(ALL_CFLAGS) $(OBJS) $(LIBS) -o nmdb + $(NICE_CC) $(ALL_CFLAGS) $(OBJS) $(LIBS) -o nmdb .c.o: - $(CC) $(ALL_CFLAGS) -c $< -o $@ + $(NICE_CC) $(ALL_CFLAGS) -c $< -o $@ install-bin: nmdb install -d $(PREFIX)/bin