# Makefile.in for kernel module SHELL = /bin/sh INSTALL = @INSTALL@ mkdir_p = @mkdir_p@ majver = @majver@ DISTFILES = Makefile.in dev.c dir.c file.c inode.c util.c fuse_i.h fusemoduledir = @kmoduledir@/kernel/fs/fuse ifeq ($(majver), 2.4) fusemodule := fuse.o else fusemodule := fuse.ko endif all: all-spec install: all $(mkdir_p) $(DESTDIR)$(fusemoduledir) $(INSTALL) -m 644 $(fusemodule) $(DESTDIR)$(fusemoduledir)/$(fusemodule) -/sbin/depmod -a uninstall: rm -f $(DESTDIR)$(fusemoduledir)/$(fusemodule) -/sbin/depmod -a clean: -rm -f $(fusemodule) *.o .*.cmd *.mod.c *.ko *.s */*.o distclean: clean rm -f Makefile maintainer-clean: distclean distdir: $(DISTFILES) cp -p $(DISTFILES) $(distdir) ifeq ($(majver), 2.4) CC = @CC@ LD = @LD@ CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe CPPFLAGS = -I@kernelsrc@/include -I../include -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"@VERSION@\" fuse_objs = dev.o dir.o file.o inode.o util.o compat/parser.o SUFFIXES = .c .o .s all-spec: fuse.o .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ fuse.o: $(fuse_objs) $(LD) -r -o fuse.o $(fuse_objs) fuse_headers = fuse_i.h ../include/linux/fuse.h dev.o: $(fuse_headers) dir.o: $(fuse_headers) file.o: $(fuse_headers) inode.o: $(fuse_headers) util.o: $(fuse_headers) else export FUSE_INCLUDE ?= $(shell pwd)/../include EXTRA_CFLAGS += -I$(FUSE_INCLUDE) -DFUSE_VERSION=\"@VERSION@\" obj-m := fuse.o fuse-objs := dev.o dir.o file.o inode.o util.o all-spec: $(MAKE) -C @kernelsrc@ SUBDIRS=$(PWD) @KERNELMAKE_PARAMS@ modules endif