Browse Source

pulling in a simplification in per-arch makefiles

pull/47/head
chrysn 12 years ago
parent
commit
fa3c1ea6a2
  1. 26
      lib/efm32/tinygecko/Makefile

26
lib/efm32/tinygecko/Makefile

@ -32,29 +32,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
ARFLAGS = rcs
OBJS = vector.o
VPATH += ../
VPATH += ../:../../cm3
# Be silent per default, but 'make V=1' will show all compiler calls.
ifneq ($(V),1)
Q := @
endif
all: $(LIBNAME).a
$(LIBNAME).a: $(OBJS)
@printf " AR $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(AR) $(ARFLAGS) $@ $^
%.o: %.c
@printf " CC $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(CC) $(CFLAGS) -o $@ -c $<
clean:
@printf " CLEAN lib/efm32/tinygecko\n"
$(Q)rm -f *.o *.d
$(Q)rm -f $(LIBNAME).a
.PHONY: clean
-include $(OBJS:.o=.d)
include ../../Makefile.include

Loading…
Cancel
Save