fat12: beginnings of open/close on partition

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2019-06-09 20:32:53 +08:00
parent e6701a4b50
commit c4c5f706b0
9 changed files with 237 additions and 34 deletions

View File

@ -1,12 +1,15 @@
CFLAGS ?= -Iinclude
all: build build/test-get-set-cluster build/test-mkfs-simple
all: build build/test-get-set-cluster build/test-mkfs-simple build/test-fragment-file
build:
mkdir build
build/test-get-set-cluster: tests/get-set-cluster.c src/fat12.c include/fat12.h
$(CC) $(CFLAGS) tests/get-set-cluster.c src/fat12.c -o build/test-get-set-cluster
build/test-get-set-cluster: tests/get-set-cluster.c src/fat12.c include/fat12.h src/io.c include/io.h
$(CC) $(CFLAGS) tests/get-set-cluster.c src/fat12.c src/io.c -o build/test-get-set-cluster
build/test-mkfs-simple: tests/mkfs-simple.c src/fat12.c include/fat12.h src/mkfat.c src/io.c
$(CC) $(CFLAGS) tests/mkfs-simple.c src/mkfat.c src/fat12.c src/io.c -o $@
build/test-mkfs-simple: tests/mkfs-simple.c src/fat12.c include/fat12.h src/mkfat.c src/io.c include/io.h
$(CC) $(CFLAGS) tests/mkfs-simple.c src/mkfat.c src/fat12.c src/io.c -o $@
build/test-fragment-file: tests/fragment-file.c src/fat12.c include/fat12.h src/mkfat.c src/io.c include/io.h
$(CC) $(CFLAGS) tests/fragment-file.c src/mkfat.c src/fat12.c src/io.c -o $@