Skip to content

Commit

Permalink
Minor improvement in how build is echoed to screen.
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <[email protected]>
  • Loading branch information
troglobit committed Jan 24, 2015
1 parent 66194a8 commit 0e3d6eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ CPPFLAGS += -W -Wall -Werror
ARFLAGS = crus
JUNK = *~ *.bak *.map .*.d DEADJOE *.gdb *.elf core core.*

ROOTDIR ?= $(shell pwd)
LIBNAME = $(NAME)
prefix ?= /usr/local
libdir ?= $(prefix)/lib
Expand All @@ -57,7 +58,7 @@ TARGET = $(STATICLIB) $(SOLIB)

# Pattern rules
.c.o:
@printf " CC $@\n"
@printf " CC $(subst $(ROOTDIR)/,,$(shell pwd)/)$@\n"
@$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<

# Smart autodependecy generation via GCC -M.
Expand Down

0 comments on commit 0e3d6eb

Please sign in to comment.