From 4f11d88d28ece7e3a4604564fa65ded5a18af923 Mon Sep 17 00:00:00 2001 From: Chris Eagle Date: Fri, 28 Aug 2015 00:17:33 -0700 Subject: [PATCH] Makefile cleanup --- regress/Makefile | 2 +- samples/Makefile | 3 ++- samples/mem_protect.c | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) mode change 100644 => 100755 samples/Makefile diff --git a/regress/Makefile b/regress/Makefile index 970f2957..ed82f3aa 100755 --- a/regress/Makefile +++ b/regress/Makefile @@ -4,7 +4,7 @@ LDFLAGS = -L.. -lunicorn TESTS = map_crash map_write TESTS += sigill sigill2 TESTS += block_test -TESTS += ro_mem_test mem_protect +TESTS += ro_mem_test all: $(TESTS) diff --git a/samples/Makefile b/samples/Makefile old mode 100644 new mode 100755 index 1ebb891f..2c814006 --- a/samples/Makefile +++ b/samples/Makefile @@ -97,6 +97,7 @@ endif ifneq (,$(findstring x86,$(UNICORN_ARCHS))) SOURCES += sample_x86.c SOURCES += shellcode.c +SOURCES += mem_protect.c endif ifneq (,$(findstring m68k,$(UNICORN_ARCHS))) SOURCES += sample_m68k.c @@ -111,7 +112,7 @@ all: $(BINARY) clean: rm -rf *.o $(OBJS_ELF) $(BINARY) $(SAMPLEDIR)/*.exe $(SAMPLEDIR)/*.static $(OBJDIR)/lib$(LIBNAME)* $(OBJDIR)/$(LIBNAME)* rm -rf libunicorn*.so libunicorn*.lib libunicorn*.dylib unicorn*.dll unicorn*.lib - rm -rf sample_x86 sample_arm sample_arm64 sample_mips sample_sparc sample_ppc sample_m68k shellcode + rm -rf sample_x86 sample_arm sample_arm64 sample_mips sample_sparc sample_ppc sample_m68k shellcode mem_protect $(BINARY): $(OBJS) diff --git a/samples/mem_protect.c b/samples/mem_protect.c index e4c09201..4f0a9040 100755 --- a/samples/mem_protect.c +++ b/samples/mem_protect.c @@ -173,9 +173,6 @@ int main(int argc, char **argv, char **envp) { uch handle, trace1, trace2; uc_err err; - uint8_t bytes[8]; - uint32_t esp; - int result; printf("# Memory protect test\n");