Commits

Vincent Fiack  committed 7e90584

makefile

  • Participants
  • Parent commits 54eca40

Comments (0)

Files changed (2)

+SDL_OPTS=-libs bigarray,sdl,sdlloader,sdlttf,sdlmixer -cflags -I,+sdl -lflags -I,+sdl
+
+all: sdlmills
+
+clean:
+	rm -rf _build
+	rm *.native
+
+sdlmaze:
+	ocamlbuild -I maze ${SDL_OPTS} sdlmaze.native
+
+memory:
+	ocamlbuild -I memory ${SDL_OPTS} memory.native
+
+sdlmills:
+	ocamlbuild -I mills ${SDL_OPTS} sdlmills.native
+
+#uncomment when sdlloader becomes available to ocamlfind
+#ocamlbuild -I maze -use-ocamlfind -pkgs bigarray,sdl,sdl.sdlttf,sdl.sdlmixer,sdl.sdlloader sdlmaze.native

File build.sh

-#!/bin/sh
-ocamlbuild -I maze -libs bigarray,sdl,sdlloader,sdlttf,sdlmixer -cflags -I,+sdl -lflags -I,+sdl sdlmaze.native
-ocamlbuild -I maze -libs bigarray,sdl,sdlloader,sdlttf,sdlmixer -cflags -I,+sdl -lflags -I,+sdl memory.native
-
-#uncomment when sdlloader becomes available to ocamlfind
-#ocamlbuild -I maze -use-ocamlfind -pkgs bigarray,sdl,sdl.sdlttf,sdl.sdlmixer,sdl.sdlloader sdlmaze.native