文件结构调整:将内存映射有关代码移动到mmap.c

This commit is contained in:
fslongjin
2022-08-11 20:10:00 +08:00
parent b4b2c67514
commit 8d39334e39
5 changed files with 361 additions and 308 deletions

View File

@ -2,7 +2,7 @@
CFLAGS += -I .
all:mm.o slab.o mm-stat.o
all:mm.o slab.o mm-stat.o vma.o mmap.o
mm.o: mm.c
gcc $(CFLAGS) -c mm.c -o mm.o
@ -12,3 +12,9 @@ slab.o: slab.c
mm-stat.o: mm-stat.c
gcc $(CFLAGS) -c mm-stat.c -o mm-stat.o
vma.o: vma.c
gcc $(CFLAGS) -c vma.c -o vma.o
mmap.o: mmap.c
gcc $(CFLAGS) -c mmap.c -o mmap.o