Skip to content

Commit 5651434

Browse files
committed
Makefile: Add a project Makefile
This moves away from CMake and uses a standard Unix Makefile.
1 parent 2149f7d commit 5651434

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SOURCES=diskio.c genfatfs.c fatfs/src/ff.c \
2+
fatfs/src/option/ccsbcs.c fatfs/src/option/syscall.c
3+
OBJECTS=$(SOURCES:.c=.o)
4+
EXEC=genfatfs
5+
MY_CFLAGS += -Wall -Ifatfs/src
6+
MY_LIBS +=
7+
8+
all: $(OBJECTS)
9+
$(CC) $(LIBS) $(LDFLAGS) $(OBJECTS) $(MY_LIBS) -o $(EXEC)
10+
11+
clean:
12+
rm -f $(EXEC) $(OBJECTS)
13+
14+
.c.o:
15+
$(CC) -c $(CFLAGS) $(MY_CFLAGS) $< -o $@
16+

0 commit comments

Comments
 (0)