-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 695 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 695 Bytes
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
CC=cc
ifeq ($(OS),Windows_NT)
CCFLAGS += -D WIN32
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
FUSE_FLAGS=$(shell pkg-config fuse --cflags)
LDFLAGS=-lssl -lpthread -lcrypto -lfuse
endif
ifeq ($(UNAME_S),Darwin)
FUSE_FLAGS=-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -I/usr/local/include/osxfuse/fuse
LDFLAGS=-losxfuse -lssl -lpthread -lcrypto
endif
endif
CFLAGS=-Wall -g -O2 $(FUSE_FLAGS) -Iinclude -D_GNU_SOURCE
all: mount.pfs
mount.pfs: settings.o pfs.o lib/binapi.o
$(CC) settings.o pfs.o lib/binapi.o -o mount.pfs $(LDFLAGS)
install: mount.pfs
install -D mount.pfs $(DESTDIR)/usr/bin/mount.pfs
clean:
rm -f *~ *.o lib/*o mount.pfs