blob: f264b7850fbb1488d4f31328af7ff0b84367fde9 (
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
32
33
34
|
CC = gcc
KCFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
KCPPFLAGS = -I /lib/modules/`uname -r`/build/include/ -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES
CFLAGS = -Wall -W -g `glib-config --cflags`
LDFLAGS = `glib-config --libs`
CPPFLAGS =
all: fuse.o fusemount
dev.o: dev.c
$(CC) $(KCFLAGS) $(KCPPFLAGS) -c dev.c
inode.o: inode.c
$(CC) $(KCFLAGS) $(KCPPFLAGS) -c inode.c
dir.o: dir.c
$(CC) $(KCFLAGS) $(KCPPFLAGS) -c dir.c
util.o: util.c
$(CC) $(KCFLAGS) $(KCPPFLAGS) -c util.c
fuse_objs = dev.o inode.o dir.o util.o
fuse.o: $(fuse_objs)
ld -r -o fuse.o $(fuse_objs)
fusemount: fusemount.o
clean:
rm -f *.o
rm -f fusemount
rm -f *~
|