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
2014-12-13 02:52:33 +01:00

19 lines
310 B
Makefile
Executable File

# 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)