aboutsummaryrefslogtreecommitdiffstats
path: root/lufis/Makefile
blob: 5ff039297d61e2ced933d4fbd6f347d5619dfedc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC = gcc

CFLAGS := -Wall -W -g 
LDLIBS := -lpthread -ldl -rdynamic

PKGCONFIG := env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config
FUSEVER := $(shell $(PKGCONFIG) --modversion fuse 2> /dev/null)
ifeq ($(FUSEVER),)
	LDLIBS += -lfuse
else
	CFLAGS += $(shell $(PKGCONFIG) --cflags fuse)
	LDLIBS += $(shell $(PKGCONFIG) --libs fuse)
endif

CPPFLAGS := -D_FILE_OFFSET_BITS=64
#CPPFLAGS += -DDEBUG

lufis: lufis.o options.o dircache.o

clean:
	rm -f *.o lufis