From: Oliver Schmidt
Date: Sun, 5 May 2013 20:34:04 +0000 (+0200)
Subject: Reduced verbosity.
X-Git-Tag: V2.14~24
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6ebf71446d883e5b68075577ce5fc6adfe8fc58;p=cc65
Reduced verbosity.
---
diff --git a/src/Makefile b/src/Makefile
index e62886c73..635c87470 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -22,13 +22,17 @@ CFLAGS += -MMD -MP -O -std=c89 -I common \
LDLIBS += -lm
+.SUFFIXES:
+
+.PHONY: all $(PROGS) mostlyclean clean install uninstall
+
all: $(PROGS)
mostlyclean:
$(RM) -r ../wrk
-clean: mostlyclean
- $(RM) -r ../bin
+clean:
+ $(RM) -r ../wrk ../bin
install: all
$(foreach prog,$(PROGS),$(INSTALL_recipe))
@@ -36,10 +40,6 @@ install: all
uninstall:
$(foreach prog,$(PROGS),$(UNINSTALL_recipe))
-.PHONY: all $(PROGS) mostlyclean clean install uninstall
-
-.SUFFIXES:
-
##########
define INSTALL_recipe
@@ -65,7 +65,7 @@ $1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
$$($1_OBJS): | ../wrk/$1
../wrk/$1:
- mkdir -p $$@
+ @mkdir -p $$@
DEPS += $$($1_OBJS:.o=.d)
@@ -87,11 +87,11 @@ endef
##########
../wrk/%.o: %.c
- @echo $(CC) $<
+ @echo $<
@$(CC) -c $(CFLAGS) -o $@ $<
../bin:
- mkdir $@
+ @mkdir $@
$(eval $(call OBJS_template,common))
../wrk/common/common.a: $(common_OBJS)