aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-04 05:18:44 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-04 05:26:19 -0400
commit7514add8092e5e7cb1475407dcb3d43ac3b30289 (patch)
treea1ab62a97273d8dd83a57447beb4e282bffee431 /Makefile
parent841e03c3c846d6b36418e2ae1647a35f6bc7c827 (diff)
downloadrunes-7514add8092e5e7cb1475407dcb3d43ac3b30289.tar.gz
runes-7514add8092e5e7cb1475407dcb3d43ac3b30289.zip
make compilation quieter
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2cbdf89..3b56d03 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,11 @@ ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS)
MAKEDEPEND = $(CC) $(ALLCFLAGS) -M -MP -MT '$@ $(@:$(BUILD)%.o=$(BUILD).%.d)'
+ifndef VERBOSE
+QUIET_CC = @echo " CC $@";
+QUIET_LD = @echo " LD $@";
+endif
+
all: $(OUT) $(DOUT) $(COUT) ## Build all of the targets
release: ## Build optimized binaries
@@ -48,13 +53,13 @@ run-daemon: $(DOUT) $(COUT) ## Build and run the runes daemon
@./$(DOUT)
$(OUT): $(OBJ) libvt100/libvt100.a
- $(CC) -o $@ $^ $(ALLLDFLAGS)
+ $(QUIET_LD)$(CC) -o $@ $^ $(ALLLDFLAGS)
$(DOUT): $(DOBJ) libvt100/libvt100.a
- $(CC) -o $@ $^ $(ALLLDFLAGS)
+ $(QUIET_LD)$(CC) -o $@ $^ $(ALLLDFLAGS)
$(COUT): $(COBJ)
- $(CC) -o $@ $^ $(ALLLDFLAGS)
+ $(QUIET_LD)$(CC) -o $@ $^ $(ALLLDFLAGS)
libvt100/libvt100.a: make-libvt100
@@ -64,7 +69,7 @@ make-libvt100:
$(BUILD)%.o: $(SRC)%.c
@mkdir -p $(BUILD)
@$(MAKEDEPEND) -o $(<:$(SRC)%.c=$(BUILD).%.d) $<
- $(CC) $(ALLCFLAGS) -c -o $@ $<
+ $(QUIET_CC)$(CC) $(ALLCFLAGS) -c -o $@ $<
$(SRC)screen.c: $(SRC)parser.h