Commit 93374434 by Alan Mishchenko

Makefile updated to print less information.

parent 16dc02e7
CC := gcc CC := gcc
CXX := g++ CXX := g++
LD := g++ LD := g++
...@@ -58,11 +57,21 @@ DEP := $(OBJ:.o=.d) ...@@ -58,11 +57,21 @@ DEP := $(OBJ:.o=.d)
# implicit rules # implicit rules
%.o: %.c
@echo "\`\` Compiling:" $(LOCAL_PATH)/$<
@$(CC) -c $(CFLAGS) $< -o $@
%.o: %.cc
@echo "\`\` Compiling:" $(LOCAL_PATH)/$<
@$(CC) -c $(CXXFLAGS) $< -o $@
%.d: %.c %.d: %.c
./depends.sh $(CC) `dirname $*.c` $(CFLAGS) $*.c > $@ @echo "\`\` Dependency:" $(LOCAL_PATH)/$<
@./depends.sh $(CC) `dirname $*.c` $(CFLAGS) $*.c > $@
%.d: %.cc %.d: %.cc
./depends.sh $(CXX) `dirname $*.cc` $(CXXFLAGS) $(CFLAGS) $*.cc > $@ @echo "\`\` Generating dependency:" $(LOCAL_PATH)/$<
@./depends.sh $(CXX) `dirname $*.cc` $(CXXFLAGS) $(CFLAGS) $*.cc > $@
-include $(DEP) -include $(DEP)
...@@ -71,18 +80,21 @@ DEP := $(OBJ:.o=.d) ...@@ -71,18 +80,21 @@ DEP := $(OBJ:.o=.d)
depend: $(DEP) depend: $(DEP)
clean: clean:
rm -rf $(PROG) lib$(PROG).a $(OBJ) $(GARBAGE) $(OBJ:.o=.d) @echo "\`\` Cleaning up..."
@rm -rvf $(PROG) lib$(PROG).a $(OBJ) $(GARBAGE) $(OBJ:.o=.d)
tags: tags:
ctags -R . ctags -R .
$(PROG): $(OBJ) $(PROG): $(OBJ)
$(LD) -o $@ $^ $(LIBS) @echo "\`\` Building binary:" $(notdir $@)
@$(LD) -o $@ $^ $(LIBS)
lib$(PROG).a: $(OBJ) lib$(PROG).a: $(OBJ)
ar rv $@ $? @echo "\`\` Linking:" $(notdir $@)
ranlib $@ @ar rv $@ $?
@ranlib $@
docs: docs:
doxygen doxygen.conf @echo "\`\` Building documentation." $(notdir $@)
@doxygen doxygen.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment