diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/make.inc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tools/make.inc b/tools/make.inc index 0da7a8b17c..9e6600f77a 100644 --- a/tools/make.inc +++ b/tools/make.inc | |||
@@ -1,20 +1,24 @@ | |||
1 | # -*- Makefile -*- | 1 | # -*- Makefile -*- |
2 | 2 | ||
3 | ifndef V | ||
4 | SILENT=@ | ||
5 | endif | ||
6 | |||
3 | $(OBJDIR)/%.o: %.c | 7 | $(OBJDIR)/%.o: %.c |
4 | @mkdir -p `dirname $@` | 8 | $(SILENT)mkdir -p `dirname $@` |
5 | @echo "CC $<" | 9 | @echo "CC $<" |
6 | @$(CC) $(CFLAGS) -c $< -o $@ | 10 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ |
7 | 11 | ||
8 | $(OBJDIR)/%.o: %.S | 12 | $(OBJDIR)/%.o: %.S |
9 | @mkdir -p `dirname $@` | 13 | $(SILENT)mkdir -p `dirname $@` |
10 | @echo "CC $<" | 14 | @echo "CC $<" |
11 | @$(CC) $(CFLAGS) -c $< -o $@ | 15 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ |
12 | 16 | ||
13 | # the lame echo stuff down here is to prevent any compiler errors/warnings | 17 | # the lame echo stuff down here is to prevent any compiler errors/warnings |
14 | # to cause an error code to get returned and thus stop the build | 18 | # to cause an error code to get returned and thus stop the build |
15 | $(DEPFILE): $(SOURCES) | 19 | $(DEPFILE): $(SOURCES) |
16 | @rm -f $(DEPFILE) | 20 | $(SILENT)rm -f $(DEPFILE) |
17 | @(for each in $(SOURCES) x; do \ | 21 | $(SILENT)(for each in $(SOURCES) x; do \ |
18 | if test "x" != "$$each"; then \ | 22 | if test "x" != "$$each"; then \ |
19 | obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \ | 23 | obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \ |
20 | $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \ | 24 | $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \ |
@@ -23,6 +27,6 @@ $(DEPFILE): $(SOURCES) | |||
23 | echo "oo" >/dev/null ) | 27 | echo "oo" >/dev/null ) |
24 | 28 | ||
25 | tags: | 29 | tags: |
26 | @(for d in $(DIRS); do \ | 30 | $(SILENT)(for d in $(DIRS); do \ |
27 | etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \ | 31 | etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \ |
28 | done) | 32 | done) |