include ../../Makefile.conf

TARGET=libst_usb.a

# Includes
CFLAGS+= -I.
CFLAGS+= -I../cmsis
CFLAGS+= -I../hal

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/