-LIBSNDFILEDIR = ../../libsndfile/lib #/home/erikd/Local/lib
+LIBSNDFILEDIR = $(realpath ../../libsndfile/lib)
CC = gcc
CFLAGS = -g -W -Wall -Werror -Wno-missing-field-initializers
OCAML_BINDIR = $(shell which ocaml)
OCAML_LIBDIR = $(subst bin,lib,$(OCAML_BINDIR))
-OCAML_CFLAGS = -I $(OCAML_LIBDIR) #/usr/lib/ocaml/$(shell ocamlopt -version)
+OCAML_CFLAGS = -I $(OCAML_LIBDIR)
LIBSNDFILE = -ccopt -L$(LIBSNDFILEDIR) -cclib -lsndfile -cclib -lm