pulling in a simplification in per-arch makefiles
This commit is contained in:
parent
a818dbe729
commit
fa3c1ea6a2
@ -32,29 +32,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
|||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = vector.o
|
OBJS = vector.o
|
||||||
|
|
||||||
VPATH += ../
|
VPATH += ../:../../cm3
|
||||||
|
|
||||||
# Be silent per default, but 'make V=1' will show all compiler calls.
|
include ../../Makefile.include
|
||||||
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)
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user