# $Id: Makefile.ocaml,v 3.3 2003-03-22 16:11:30 stolpmann Exp $ TOP_DIR=../../../ include $(TOP_DIR)/Makefile.conf REQUIRES = camlidl wdialog wdialog-perlguts all: Stubs.xs UI.byte check: @echo OCAMLPATH: $$OCAMLPATH @for x in $(PKG); do echo $$x '=>' `ocamlfind query $$x`; done Stubs.xs: functions D=`ocamlfind query wdialog-perlguts`; \ perl $$D/make-xs.pl UI::Stubs >Stubs.xs UI.byte: stubs.ml LD_PRELOAD=$(PERL_LIBDIR)/dllfakelib.so \ ocamlfind ocamlc -package "$(REQUIRES)" -o UI.byte.1 \ -linkall -I $(PERL_LIBDIR) -dllpath $(PERL_LIBDIR) \ -predicates pxp_without_utf8,netstring_minimum \ -linkpkg stubs.ml echo "Objective Caml bytecode - not directly executable!" >UI.byte cat UI.byte.1 >>UI.byte rm UI.byte.1 clean: rm -f Stubs.xs *.o *.so stubs.syms p *.byte *.cmi *.cmo