LDFLAGS+=-L/usr/pkg/lib/
endif
+V ?= 0
+ifeq ($(V),0)
+# Don’t print command lines which are run
+.SILENT:
+endif
CFLAGS+=$(EXTRA_CFLAGS)
OBJS:=$(OBJS:.c=.o)
src/%.o: src/%.c include/i3status.h
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
@echo " CC $<"
%.o: %.c include/%.h
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
@echo " CC $<"
all: i3status manpage
i3status: ${OBJS}
- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@echo " LD $@"
clean: