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.
28 lines
371 B
28 lines
371 B
include ../../Makefile.conf
|
|
|
|
TARGET=libst_usb.a
|
|
|
|
# Includes
|
|
CFLAGS+= -I.
|
|
CFLAGS+= -I../cmsis
|
|
CFLAGS+= -I../STM32F4xx_HAL_Driver/Inc
|
|
CFLAGS+= -I../../src
|
|
|
|
C_SRC=$(wildcard *.c)
|
|
C_OBJ=$(subst .c,.o,$(C_SRC))
|
|
|
|
OBJ=$(C_OBJ)
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJ)
|
|
$(AR) -cr $@ $^
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -o $@ -c $^
|
|
|
|
clean:
|
|
rm -vf $(OBJ)
|
|
rm -vf $(TARGET)
|
|
|