|
|
@ -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 |
|
|
|
|
|
|
|