/[fuse_dbi]/fuse/cvs/kernel/Makefile.in
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /fuse/cvs/kernel/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations)
Wed Aug 4 11:36:44 2004 UTC (19 years, 8 months ago) by dpavlin
File size: 1586 byte(s)
import current CVS of fuse

1 dpavlin 4 # Makefile.in for kernel module
2    
3     SHELL = /bin/sh
4     INSTALL = @INSTALL@
5     mkdir_p = @mkdir_p@
6     majver = @majver@
7    
8     DISTFILES = Makefile.in dev.c dir.c file.c inode.c util.c fuse_i.h
9    
10     fusemoduledir = @kmoduledir@/kernel/fs/fuse
11    
12     ifeq ($(majver), 2.4)
13     fusemodule := fuse.o
14     else
15     fusemodule := fuse.ko
16     endif
17    
18     all: all-spec
19    
20     install: all
21     $(mkdir_p) $(DESTDIR)$(fusemoduledir)
22     $(INSTALL) -m 644 $(fusemodule) $(DESTDIR)$(fusemoduledir)/$(fusemodule)
23     -/sbin/depmod -a
24    
25     uninstall:
26     rm -f $(DESTDIR)$(fusemoduledir)/$(fusemodule)
27     -/sbin/depmod -a
28    
29     clean:
30     -rm -f $(fusemodule) *.o .*.cmd *.mod.c *.ko *.s */*.o
31    
32     distclean: clean
33     rm -f Makefile
34    
35     maintainer-clean: distclean
36    
37     distdir: $(DISTFILES)
38     cp -p $(DISTFILES) $(distdir)
39    
40    
41     ifeq ($(majver), 2.4)
42    
43     CC = @CC@
44     LD = @LD@
45     CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
46     CPPFLAGS = -I@kernelsrc@/include -I../include -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"@VERSION@\"
47    
48     fuse_objs = dev.o dir.o file.o inode.o util.o compat/parser.o
49    
50     SUFFIXES = .c .o .s
51    
52     all-spec: fuse.o
53    
54     .c.o:
55     $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
56    
57     fuse.o: $(fuse_objs)
58     $(LD) -r -o fuse.o $(fuse_objs)
59    
60     fuse_headers = fuse_i.h ../include/linux/fuse.h
61    
62     dev.o: $(fuse_headers)
63     dir.o: $(fuse_headers)
64     file.o: $(fuse_headers)
65     inode.o: $(fuse_headers)
66     util.o: $(fuse_headers)
67    
68     else
69    
70     export FUSE_INCLUDE ?= $(shell pwd)/../include
71     EXTRA_CFLAGS += -I$(FUSE_INCLUDE) -DFUSE_VERSION=\"@VERSION@\"
72    
73     obj-m := fuse.o
74     fuse-objs := dev.o dir.o file.o inode.o util.o
75    
76     all-spec:
77     $(MAKE) -C @kernelsrc@ SUBDIRS=$(PWD) @KERNELMAKE_PARAMS@ modules
78     endif

  ViewVC Help
Powered by ViewVC 1.1.26