Conquering the STM32F4 on the discovery board step-by-step. Commit history is tutorialesque, but not clean of course.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
325 B

include ../../Makefile.conf
TARGET=libcmsis.a
# Includes
CFLAGS+= -I.
CFLAGS+= -I../cmsis
SRC=$(wildcard *.c)
OBJ=$(subst .c,.o,$(SRC))
DEPENDS=$(subst .c,.d,$(SRC))
.PHONY: all clean
all: $(TARGET)
$(TARGET): $(OBJ)
$(AR) -cr $@ $^
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
clean:
mv $(OBJ) /tmp/
mv $(TARGET) /tmp/