mirror of
https://github.com/rene-dev/stmbl.git
synced 2024-12-25 18:12:17 +00:00
19 lines
310 B
Makefile
Executable File
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)
|