mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tst: passthrough-fuse: update Makefile to link with CYGFUSE or WinFsp-FUSE
This commit is contained in:
parent
5617d09edc
commit
303cadb55d
1
tst/passthrough-fuse/.gitignore
vendored
1
tst/passthrough-fuse/.gitignore
vendored
@ -4,3 +4,4 @@ build
|
|||||||
*.vcproj.*
|
*.vcproj.*
|
||||||
*.vcxproj.user
|
*.vcxproj.user
|
||||||
*.exe
|
*.exe
|
||||||
|
*.install
|
||||||
|
@ -1,2 +1,18 @@
|
|||||||
passthrough-fuse: passthrough-fuse.c
|
usage:
|
||||||
|
@echo "make cygfuse|winfsp-fuse" 1>&2
|
||||||
|
@echo "" 1>&2
|
||||||
|
@echo " cygfuse Link with CYGFUSE" 1>&2
|
||||||
|
@echo " winfsp-fuse Link with WinFsp-FUSE" 1>&2
|
||||||
|
@exit 2
|
||||||
|
|
||||||
|
cygfuse: passthrough-cygfuse
|
||||||
|
|
||||||
|
winfsp-fuse: passthrough-winfsp-fuse
|
||||||
|
|
||||||
|
passthrough-cygfuse: passthrough-fuse.c
|
||||||
|
gcc $^ -o $@ -g -Wall `pkg-config fuse --cflags --libs`
|
||||||
|
|
||||||
|
passthrough-winfsp-fuse: export PKG_CONFIG_PATH=$(PWD)/winfsp.install/lib
|
||||||
|
passthrough-winfsp-fuse: passthrough-fuse.c
|
||||||
|
ln -nsf "`regtool --wow32 get '/HKLM/Software/WinFsp/InstallDir' | cygpath -au -f -`" winfsp.install
|
||||||
gcc $^ -o $@ -g -Wall `pkg-config fuse --cflags --libs`
|
gcc $^ -o $@ -g -Wall `pkg-config fuse --cflags --libs`
|
7
tst/passthrough-fuse/README.md
Normal file
7
tst/passthrough-fuse/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
`Passthrough-fuse` is a simple FUSE file system that passes all file system operations to an underlying file system.
|
||||||
|
|
||||||
|
It can be built with the following tools:
|
||||||
|
|
||||||
|
- Using Visual Studio (`winfsp.sln`).
|
||||||
|
- Using Cygwin GCC and linking directly with the WinFsp DLL (`make winfsp-fuse`).
|
||||||
|
- Using Cygwin GCC and linking to CYGFUSE (`make cygfuse`).
|
Loading…
x
Reference in New Issue
Block a user