Skip to content

Commit

Permalink
simplified Makefile a little
Browse files Browse the repository at this point in the history
  • Loading branch information
rapha committed Feb 15, 2011
1 parent 5c39b2c commit 3555b67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ clean:
rm *.cm* *.byte

game.cma: piece.ml board.mli board.ml player.ml ai.ml game.ml
ocamlfind ocamlc -a -thread -package batteries -linkpkg piece.ml board.mli board.ml player.ml ai.ml game.ml -o game.cma
ocamlfind ocamlc -a -package batteries piece.ml board.mli board.ml player.ml ai.ml game.ml -o game.cma

test: game.cma test.ml
test.byte: game.cma test.ml
ocamlfind ocamlc -thread -package batteries,oUnit -linkpkg game.cma test.ml -o test.byte

test: test.byte
./test.byte

tui: test
Expand Down

0 comments on commit 3555b67

Please sign in to comment.