GHC_WARNINGS += -fwarn-unused-do-bind
BIN := spline3
-GHC_OPTS := $(GHC_WARNINGS) -odir /tmp -hidir /tmp --make -o bin/${BIN}
+TMPDIR := /tmp
+GHC_OPTS := $(GHC_WARNINGS) \
+ -odir $(TMPDIR) \
+ -hidir $(TMPDIR) \
+ --make \
+ -rtsopts \
+ -threaded \
+ -o bin/${BIN}
.PHONY : test publish_doc doc src_html hlint
clean:
rm -f bin/$(BIN)
- rm -f src/*.hi
- rm -f src/*.o
- rm -f src/Tests/*.hi
- rm -f src/Tests/*.o
+ rm -f $(TMPDIR)/*.hi
+ rm -f $(TMPDIR)/*.o
rm -f *.prof
rm -rf doc/html/*