Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (18 sloc) 689 Bytes
CFLAGS += -g -Wall -O2 -fPIC
CXXFLAGS += "-I$(shell $(OCAMLC) -where)"
%.o: %.c
$(OCAMLC) -cc g++ $(mapprefix -ccopt, $(CFLAGS)) -ccopt -pthread -c $^
leveldb_stubs.o: leveldb_stubs.cc
section
leveldb.cma leveldb.cmxa leveldb.a libcamlleveldb.a dllcamlleveldb.so: \
leveldb_stubs.o levelDB.cmo levelDB.cmx
ocamlmklib \
-oc camlleveldb -o leveldb -lsnappy -lleveldb -lstdc++ -lsnappy -lm \
leveldb_stubs.o levelDB.cmo levelDB.cmx
.DEFAULT: leveldb.cma leveldb.cmxa
if $(HAS_NATDYNLINK)
.DEFAULT: leveldb.cmxs
.PHONY: clean
clean:
rm -f $(filter-proper-targets $(ls R, .)) *.s *.annot *.so *.a
# vim: set expandtab ts=4:
Something went wrong with that request. Please try again.