aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f8810fd2046992d07cb7d44f5ed4a926f0f2b94f (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
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
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 *~