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 test-unproject
BYTE_TARGETS    := $(TARGETS:=.byte)
OPT_TARGETS	:= $(TARGETS:=.opt)

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

%.opt: %.cmx
	ocamlfind ocamlopt $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) -o $@ $^
%.byte: %.cmo
	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^

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