fccm / OCamlSDL2

OCaml interface to SDL 2.0 (for Linux, Windows, MacOS, and ChromeBook)
Other
51 stars 10 forks source link

Building on osx #1

Closed piotrm0 closed 10 years ago

piotrm0 commented 10 years ago

ocaml and sdl .h files are not found when doing "make dep", fixed by the diff below. Installs fine otherwise.

diff --git a/src/Makefile b/src/Makefile index a86812a..952f272 100644 --- a/src/Makefile +++ b/src/Makefile @@ -17,8 +17,8 @@ OCAML := ocaml OCAMLDOC := ocamldoc OCAMLDEP := ocamldep OCAMLFIND := ocamlfind -CC_MM = gcc -MM OCAMLDIR := $(shell $(OCAMLC) -where) +CC_MM = gcc -MM -I $(OCAMLDIR) $(CFLAGS) DIRSEP := $(shell $(OCAML) dir_sep.ml) BINDINGS_DIR := sdl2 PREFIX :=