From bc22e7bec727bc72d91a3001fbda976f1adf352d Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 23 Oct 2001 19:26:04 +0000 Subject: Imported sources --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aedd26d --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +CC = gcc + +KCFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe +KCPPFLAGS = -I /lib/modules/`uname -r`/build/include/ -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES + +CFLAGS = -Wall -W -g +CPPFLAGS = + +all: fuse.o fusemount + +dev.o: dev.c + $(CC) $(KCFLAGS) $(KCPPFLAGS) -c dev.c + +inode.o: inode.c + $(CC) $(KCFLAGS) $(KCPPFLAGS) -c inode.c + +dir.o: dir.c + $(CC) $(KCFLAGS) $(KCPPFLAGS) -c dir.c + +main.o: main.c + $(CC) $(KCFLAGS) $(KCPPFLAGS) -c main.c + +fuse_objs = dev.o inode.o dir.o main.o + +fuse.o: $(fuse_objs) + ld -r -o fuse.o $(fuse_objs) + +fusemount: fusemount.o + +clean: + rm -f *.o + rm -f fusemount + rm -f *~ -- cgit v1.2.3