forked from caldwell/gdisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.quiet
More file actions
21 lines (19 loc) · 807 Bytes
/
Makefile.quiet
File metadata and controls
21 lines (19 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2008 David Caldwell, All Rights Reserved. -*- makefile -*-
# You *must* define TARGETS in your makefile before including this. It
# should contain the list of executables that need to be linked.
# "make V=1" to see the make commands.
Q=$(if $V,,@)
ifeq ($V,)
_CC:=$(CC)
%.o: override CC=$(Q)printf "%15s %s\n" "Compiling" $<; $(_CC)
_CXX:=$(CXX)
%.o: override CXX=$(Q)printf "%15s %s\n" "Compiling" $<; $(_CXX)
_FC:=$(FC)
%.o: override FC=$(Q)printf "%15s %s\n" "Compiling" $<; $(_FC)
_AS:=$(AS)
%.o: override AS=$(Q)printf "%15s %s\n" "Assembling" $<; $(_AS)
_AR:=$(AR)
%.a: override AR=$(Q)printf "%15s %s\n" "Archiving" $@; $(_AR)
$(TARGETS):override CC=$(Q)printf "%15s %s\n" "Linking" $(@); $(_CC)
$(TARGETS):override CXX=$(Q)printf "%15s %s\n" "Linking" $(@); $(_CXX)
endif