From 4161e981fd764f039fec2fff2afe3af380d33b83 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Sun, 21 Aug 2011 17:38:24 +0000 Subject: first version of toplevel makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..96e3763 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +all: hookfs file_hook.so + +hookfs: src/hook_fusefs/hookfs.c + $(CC) -std=c99 -Wall `pkg-config fuse --cflags --libs` -lulockmgr \ + $(CFLAGS) $(LDFLAGS) src/hook_fusefs/hookfs.c -o hookfs + +file_hook.so: file_hook.o + ld -shared -o file_hook.so -ldl -lc file_hook.o + +file_hook.o: src/hook_lib/file_hook.c + cc -Wall -fPIC -o file_hook.o -c src/hook_lib/file_hook.c + + +clean: + rm -f hookfs file_hook.o file_hook.so -- cgit v1.2.3-65-gdbad