Source

clutter-ocaml / tests / Makefile.in

# clutter-ocaml

PACKAGE		:= @PACKAGE_NAME@
VERSION		:= @PACKAGE_VERSION@

INSTALL		:= @INSTALL@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@

pkg_labgtk2	= @pkg_lablgtk2@
pkg_cairo	= @pkg_cairo@

OCAMLCPACKAGES	:= -package lablgtk2,bigarray,cairo
OCAMLCFLAGS	:= -g -w s -I ../src ../src/mlclutter.cma
OCAMLCLIBS	:= -cclib -L../src 

OCAMLOPTPACKAGES := -linkpkg $(OCAMLCPACKAGES)
OCAMLOPTFLAGS	:= -w s -I ../src

CLUTTER_FLAGS   := @CLUTTER_LIBS@
CLUTTER_CAIRO_FLAGS := @CLUTTER_CAIRO_LIBS@

OCAMLOPTLIBS	:= $(OCAMLCLIBS) -cclib '$(CLUTTER_FLAGS)' -cclib '$(CLUTTER_CAIRO_FLAGS)' -cclib -lclutter-ocaml ../src/mlclutter.cmxa

# test-cogl-tex-file --> need to finish this one test-events
TARGETS	:= test-behave test-events test-cogl-primitives \
	test-depth test-effect test-entry test-project \
	test-rotate test-score test-scale
BYTE_TARGETS    := $(TARGETS:=.byte)
OPT_TARGETS	:= $(TARGETS:=.opt)

all: $(OPT_TARGETS) ../src/mlclutter.cmxa
byte: $(BYTE_TARGETS)

test-behave: test-behave.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-behave.opt: test-behave.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-scale: test-scale.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-scale.opt: test-scale.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-events: test-events.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-events.opt: test-events.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-cogl-primitives: test-cogl-primitives.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-cogl-primitives.opt: test-cogl-primitives.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-cogl-tex-file: test-cogl-tex-file.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-cogl-tex-file.opt: test-cogl-tex-file.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-depth: test-depth.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-depth.opt: test-depth.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-effect: test-effect.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-effect.opt: test-effect.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-entry: test-entry.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-entry.opt: test-entry.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-project: test-project.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-project.opt: test-project.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-rotate: test-rotate.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-rotate.opt: test-rotate.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

test-score: test-score.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

test-score.opt: test-score.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^

# Manual page.
include ../Make.rules
include .depend