include ../../Makefile.conf TARGET=libhal.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/