OCAMLMAKEFILE = /usr/include/OCamlMakefile
# for debugging: add -g and make bc, then ocamldebug the RESULT
# for profiling: make profiling-native-code, then gprof
RESULT  = ratemy
B = /home/matsen/spaz
C = $(B)/common
INCDIRS = /home/matsen/ocaml/libs/lacaml-2.8.0/lib /usr/lib/ocaml/gsl
LIBDIRS = $(INCDIRS) 
OCAMLFLAGS = #-dtypes
#OCAMLBLDFLAGS = -dllpath $(INCDIRS)
OCAMLLDFLAGS = -ccopt -static   # static linking
LIBS    = pcre bigarray str lacaml gsl
BASE = $(C)/number.ml $(C)/mat.ml $(C)/btree.ml $(C)/common_base.ml base.ml $(C)/resolution.ml $(C)/stats.ml $(C)/algexp.ml $(C)/treeAE.ml $(C)/score.ml
SOURCES = $(BASE) $(RESULT).ml

all: native-code

run:
	./$(RESULT) test.ts

go:
	make && make run

edit: 
	vi $(RESULT).ml $(BASE)


install:
	scp ratemy fmatsen@port:bin

-include $(OCAMLMAKEFILE)
