Plasma GitLab Archive
Projects Blog Knowledge

TOP_DIR=../..

PKGNAME = ocamlrun-dso
INSTOTHER = install-perl-libdir

all: libocamlrun.so

libocamlrun.so:
	test -d "$(OCAMLTREE)"
	mkdir -p byterun config
	cp $(OCAMLTREE)/config/Makefile $(OCAMLTREE)/config/s.h $(OCAMLTREE)/config/m.h config
	cp $(OCAMLTREE)/byterun/*.c $(OCAMLTREE)/byterun/*.h $(OCAMLTREE)/byterun/Makefile $(OCAMLTREE)/byterun/.depend byterun
	cp main.c Makefile.so byterun
	#touch byterun/.depend
	#make -C byterun -f Makefile.so depend
	LD_RUN_PATH="$(PERL_LIBDIR)" make -C byterun -f Makefile.so all-so
	mv byterun/libocamlrun.so .

opt:
	true

include $(TOP_DIR)/Makefile.conf

install:
	mkdir -p $(PERL_LIBDIR)
	cp libocamlrun.so $(PERL_LIBDIR)

uninstall:

clean::
	rm -rf byterun config libocamlrun.so



This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml