Source

OCaml-Chip8 / src / Makefile

Full commit
##
## Makefile for OCaml-Chip8 in /home/surply_p
## 
## Made by Pierre Surply
## <pierre.surply@gmail.com>
## 
## Started on  Sat Aug  4 20:55:40 2012 Pierre Surply
## Last update Wed Oct 10 18:55:31 2012 Pierre Surply
##

OCAMLBUILD	= ocamlbuild
OCAMLLD		= bigarray.cma,sdl.cma,sdlloader.cma,sdlmixer.cma
OCAMLFLAGS	= -lflags -I,+sdl,$(OCAMLLD) -cflags -I,+sdl
BUILDTYPE	= byte
MAIN		= main.$(BUILDTYPE)
EXEC		= ../ocaml-chip8

all: $(MAIN)

$(MAIN): $(SRC)
	${OCAMLBUILD} ${OCAMLFLAGS},${OCAMLLD} $@
	mv _build/$(MAIN) $(EXEC)
	rm $(MAIN)

clean:
	@$(OCAMLBUILD) -clean
	rm -f *~ *.o *.cm? $(EXEC)