SmartAudio/package/minigui/F1C200s-board/src/Makefile

20 lines
348 B
Makefile
Raw Normal View History

2018-07-13 01:31:50 +00:00
TARGET = F1C200s-board
SRCDIRS = $(shell find . -maxdepth 3 -type d)
SRCS = $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c))
OBJS = $(SRCS:.c=.o)
INCLUDES += $(foreach dir,$(SRCDIRS),-I$(dir))
LIB +=
%.o: %.c
$(CC) $(INCLUDES) $(LIB) -c -o $@ $<
$(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS) $(LIB)
all:$(TARGET)
clean:
-rm -rf $(OBJS) $(TARGET)