From e7c007e81158d22e1ad493b0fd178cf44c4c618a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 28 May 2019 17:01:04 +0200 Subject: [PATCH] Compile libdwarfw from master Makefile --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9fbfc32..0eba16c 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,22 @@ OCAMLBUILD=bapbuild -no-hygiene BAPBUNDLE=bapbundle ROOT_MODULE=dwarfsynth +LIBDWARFW_SO=libdwarfw/build/libdwarfw.so +LIBDWARFW_SO_MESON=libdwarfw/build/build.ninja + all: install ml_dwarf_write.bin .PHONY: ml_dwarf_write.bin -ml_dwarf_write.bin: +ml_dwarf_write.bin: $(LIBDWARFW_SO) $(MAKE) -C DwarfSynth/c_bindings ln -fs DwarfSynth/c_bindings/ml_dwarf_write.bin . +.PHONY: $(LIBDWARFW_SO) +$(LIBDWARFW_SO): + cd libdwarfw && test -d build || meson build + ninja -C libdwarfw/build + .PHONY: $(ROOT_MODULE).plugin $(ROOT_MODULE).plugin: $(OCAMLBUILD) $(ROOT_MODULE).plugin