blob: e26c700b73f9cfa7df472416d6ebfcfdbb521a6a [file] [log] [blame]
Miklos Szeredif85ab242004-01-07 12:16:45 +00001# Makefile.in for kernel module
2
3SHELL = /bin/sh
4INSTALL = @INSTALL@
Miklos Szeredi51ec1032004-11-10 11:52:26 +00005mkdir_p = mkdir -p
Miklos Szeredi51ec1032004-11-10 11:52:26 +00006VERSION = @PACKAGE_VERSION@
Miklos Szeredif85ab242004-01-07 12:16:45 +00007
Miklos Szeredi3a6ea062004-11-11 10:33:58 +00008DISTFILES = Makefile.in configure.ac configure config.h.in ../install-sh \
Miklos Szeredi91762cd2006-06-29 14:38:35 +00009 dev.c dir.c file.c inode.c fuse_i.h fuse_kernel.h control.c
Miklos Szeredif85ab242004-01-07 12:16:45 +000010
11fusemoduledir = @kmoduledir@/kernel/fs/fuse
12
Miklos Szeredif85ab242004-01-07 12:16:45 +000013fusemodule := fuse.ko
Miklos Szeredif85ab242004-01-07 12:16:45 +000014
Miklos Szeredi8c7da232005-01-09 12:27:41 +000015all: all-@ENABLE_FUSE_MODULE@
16install: install-@ENABLE_FUSE_MODULE@
17uninstall: uninstall-@ENABLE_FUSE_MODULE@
Miklos Szeredif85ab242004-01-07 12:16:45 +000018
Miklos Szeredi8c7da232005-01-09 12:27:41 +000019all-n:
20install-n:
21uninstall-n:
22
23all-y: all-spec
24
25install-y: all
Miklos Szeredic6f5bb42004-05-27 10:29:19 +000026 $(mkdir_p) $(DESTDIR)$(fusemoduledir)
Miklos Szeredif85ab242004-01-07 12:16:45 +000027 $(INSTALL) -m 644 $(fusemodule) $(DESTDIR)$(fusemoduledir)/$(fusemodule)
28 -/sbin/depmod -a
29
Miklos Szeredi8c7da232005-01-09 12:27:41 +000030uninstall-y:
Miklos Szeredif85ab242004-01-07 12:16:45 +000031 rm -f $(DESTDIR)$(fusemoduledir)/$(fusemodule)
32 -/sbin/depmod -a
33
34clean:
Miklos Szeredi8ec48ec2004-04-19 10:24:41 +000035 -rm -f $(fusemodule) *.o .*.cmd *.mod.c *.ko *.s */*.o
Miklos Szeredif85ab242004-01-07 12:16:45 +000036
37distclean: clean
38 rm -f Makefile
Miklos Szeredi51ec1032004-11-10 11:52:26 +000039 rm -f config.h config.log config.status config.cache
40 rm -rf .tmp_versions
Miklos Szeredif85ab242004-01-07 12:16:45 +000041
42maintainer-clean: distclean
43
Miklos Szeredid93a4292006-09-30 12:21:49 +000044distdir: $(DISTFILES)
Miklos Szeredif85ab242004-01-07 12:16:45 +000045 cp -p $(DISTFILES) $(distdir)
Miklos Szeredif85ab242004-01-07 12:16:45 +000046
Miklos Szeredi4e358802005-01-04 13:37:55 +000047EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
Miklos Szeredi8b4e0962004-01-07 13:17:32 +000048
Miklos Szeredif85ab242004-01-07 12:16:45 +000049obj-m := fuse.o
Miklos Szeredi91762cd2006-06-29 14:38:35 +000050fuse-objs := dev.o dir.o file.o inode.o control.o
Miklos Szeredif85ab242004-01-07 12:16:45 +000051
52all-spec:
Miklos Szeredi229e8d92006-11-29 16:22:31 +000053 $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules