diff options
Diffstat (limited to 'src/fs/Makefile')
-rw-r--r-- | src/fs/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/fs/Makefile b/src/fs/Makefile new file mode 100644 index 0000000..d22fbf3 --- /dev/null +++ b/src/fs/Makefile @@ -0,0 +1,22 @@ +CFILES = $(wildcard *.c) +AFILES = $(wildcard *.s) +OFILES = $(patsubst %.c, %.o, $(CFILES)) \ + $(patsubst %.s, %.asm.o, $(AFILES)) + +CFLAGS += -I.. -I../arch/cmsis + +all: $(OFILES) + +%.o: %.c + @echo " CC " $< + @$(CROSS)$(CC) $(CFLAGS) -c $< -o $@ + +%.asm.o: %.s + @echo " AS " $< + @$(CROSS)$(AS) $(AFLAGS) -c $< -o $@ + +clean: + @echo " CLEAN" + @rm -f $(OFILES) + + |