Compile libdwarfw from master Makefile
This commit is contained in:
parent
8d49af7be8
commit
e7c007e811
1 changed files with 9 additions and 1 deletions
10
Makefile
10
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
|
||||
|
|
Loading…
Reference in a new issue