aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/Makefile.am
blob: 033c8cb3352e8af1e13874a6c735dd0c196d1c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## Process this file with automake to produce Makefile.in

EXTRA_DIST = dev.c dir.c file.c inode.c util.c fuse_i.h

CC = @CC@
CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
CPPFAGS = -I@KERNINCLUDE@ -I../include -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES
INSTALL = @INSTALL@
fusemoduledir = @kmoduledir@/kernel/fs/fuse

SUFFIXES = .c .o .s


all-local: fuse.o

install-exec-local: fuse.o
	$(mkinstalldirs) $(DESTDIR)$(fusemoduledir)
	$(INSTALL) -m 644 fuse.o $(DESTDIR)$(fusemoduledir)/fuse.o
	/sbin/depmod -a

uninstall-local:
	rm -f $(DESTDIR)$(fusemoduledir)/fuse.o
	/sbin/depmod -a

clean-local:
	rm -f *.o *.s

.c.o:
	$(CC) $(CFLAGS) $(CPPFAGS) -c $<

fuse_objs = dev.o dir.o file.o inode.o util.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)