fuse/Makefile

36 lines
873 B
Makefile
Raw Normal View History

2022-11-14 15:11:22 -06:00
UNITYPATH = test/unity
INC := -I include
UNITY := -I $(UNITYPATH)
all: compile link
compile:
gcc $(INC) -c -o build/main.o src/main.c
2022-11-14 21:46:44 -06:00
gcc $(INC) -c -o build/fuse.o src/fuse.c
gcc $(INC) -c -o build/fuseactions.o src/fuseactions.c
2022-11-14 15:11:22 -06:00
link:
2022-11-14 21:46:44 -06:00
gcc -o bin/fuse.out build/fuseactions.o build/fuse.o build/main.o
2022-11-14 15:11:22 -06:00
test: testCompile testLink testExec
testCompile:
gcc $(INC) $(UNITY) -g -c -o build/unity.o $(UNITYPATH)/unity.c
gcc $(INC) -c -o build/main.o src/main.c
gcc $(INC) -c -o build/fuse.o src/fuse.c
gcc $(INC) -c -o build/fuseactions.o src/fuseactions.c
2022-11-14 15:11:22 -06:00
gcc $(INC) -g -c -o build/test.o test/test.c
testLink:
gcc -g -o bin/test.out build/fuseactions.o build/fuse.o build/test.o build/unity.o
gcc -o bin/fuse.out build/fuseactions.o build/fuse.o build/main.o
2022-11-14 15:11:22 -06:00
testExec:
./bin/test.out
test/testfs.sh
2022-11-14 15:11:22 -06:00
clean:
rm build/*.o
rm bin/*.out
rm test/fakefs.test