aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/Makefile.am
blob: 4edce676baa98e5d58cb44462ad8ac0242c1eb31 (plain) (blame)
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
## 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

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)