1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-22 08:32:17 +00:00
stmbl/stm32f103/Libraries/STM32F10x_StdPeriph_Driver/Makefile

19 lines
310 B
Makefile
Raw Permalink Normal View History

2014-12-03 13:44:08 +00:00
# Compile the STM32F10x Standard Peripheral Library
export
LIB_OUT = libstm32fw.a
SRCS := $(shell find . -name *.[cs])
LIB_OBJS = $(sort $(patsubst %.c,%.o,$(SRCS)))
.PHONY: all
all: $(LIB_OUT)
$(LIB_OUT): $(LIB_OBJS)
$(AR) $(ARFLAGS) $@ $(LIB_OBJS)
.PHONY: clean
clean:
-rm -f $(LIB_OBJS) $(LIB_OUT)