X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=Makefile;h=090cf615851ba30ca6cc556c324c331e3a19c658;hp=c2e75ddad53479bf474bad02e01111f66348a55e;hb=4c3ecec4160909d7eba4acf1a07a8a0cd36a6365;hpb=6977bcd0e4ee3faa7ffd8f208e4031bdf906ed88 diff --git a/Makefile b/Makefile index c2e75dda..090cf615 100644 --- a/Makefile +++ b/Makefile @@ -29,15 +29,25 @@ OBJS += engines/net.o OBJS += engines/syslet-rw.o OBJS += engines/guasi.o +ifneq ($(findstring $(MAKEFLAGS),s),s) +ifndef V + QUIET_CC = @echo ' ' CC $@; + QUIET_AR = @echo ' ' AR $@; + QUIET_LINK = @echo ' ' LINK $@; +endif +endif + INSTALL = install prefix = /usr/local bindir = $(prefix)/bin mandir = $(prefix)/man -all: $(PROGS) $(SCRIPTS) - +%.o: %.c + $(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $< fio: $(OBJS) - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt + $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt + +all: $(PROGS) $(SCRIPTS) clean: -rm -f *.o .depend cscope.out $(PROGS) engines/*.o crc/*.o core.* core