forked from sorin-ionescu/ocamlfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 801 Bytes
/
Makefile
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
OCAMLMAKEFILE=../OCamlMakefile
SOURCES=Result.ml Unix_util.ml Unix_util_stubs.c Fuse_bindings.idl Fuse_util.c Fuse_lib.ml Fuse.ml
RESULT=Fuse
LIBS=bigarray
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CLIBS=osxfuse
CPPFLAGS=-I/usr/local/include/osxfuse
INCDIRS=$(shell opam config var lib)/camlidl
LIBDIRS=/usr/local/lib
else
CLIBS=fuse
endif
OCAMLLDFLAGS=-linkall
THREADS=threads
TRASH=*~ \\\#*
CFLAGS+=-D_FILE_OFFSET_BITS=64 -I. -pthread
LIBINSTALL_FILES=Fuse.a Fuse.cma Fuse.cmi Fuse.mli Fuse.cmxa Fuse_bindings.cmi Fuse_lib.cmi Unix_util.cmi dllFuse_stubs.so libFuse_stubs.a
ifndef OCAML_LIB_INSTALL
OCAML_LIB_INSTALL=$(OCAMLLIBPATH)/site-packages/ocamlfuse
endif
all: native-code-library byte-code-library
install: libinstall
uninstall: libuninstall
-include $(OCAMLMAKEFILE)