diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile b/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile index f422f4b5b4..e806893116 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile @@ -296,7 +296,7 @@ libdecomp.a: $(LIBDECOMP_OPT_OBJS) ar qc libdecomp.a $(LIBDECOMP_OPT_OBJS) ranlib libdecomp.a -sleighexamp_dir: +sleighexamp_dir: slghscan.cc rm -rf $(SLEIGHVERSION) mkdir $(SLEIGHVERSION) mkdir $(SLEIGHVERSION)/src $(SLEIGHVERSION)/specfiles diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc index 0a64034acb..3a61418e63 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/sleighexample.cc @@ -346,10 +346,13 @@ int main(int argc,char **argv) -- --LNK=src/libsla.a -- +--libsla.a: +-- $(MAKE) -C src/ $@ +-- --sleighexample.o: sleighexample.cc -- $(CXX) -c $(DBG_CXXFLAGS) $(INCLUDES) $< -o $@ -- ---sleighexample: sleighexample.o +--sleighexample: sleighexample.o libsla.a -- $(CXX) $(DBG_CXXFLAGS) -o sleighexample sleighexample.o $(LNK) -- --clean: