radare2/binr/ragg2/t/Makefile
pancake f5228044f1 * exit 1 if egg assemble or compilation fails
* Simplify x86nz assembler jumps
  - Fix 'test reg, reg'
* Minor simplification of entropy.c
2011-08-14 14:11:15 +02:00

38 lines
784 B
Makefile

R=../ragg2
all:
${MAKE} hello
#${MAKE} foo
foo:
rabin2 -c mach0:`rasm2 -a x86.nz -f hello.s` a.out
bla:
${MAKE} hello
hello:
rm -f a.out
$R -s hello.r -o hello.s
cat hello.s
$R -x hello.r
$R -F -o a.out hello.r
#-./a.out ; RET=$$? ; if [ $$RET = 0 ]; then echo It Works ; else echo Oops.. Fail ; fi
hi:
rm -f a.out
$R -s hi.r
$R -F -o a.out hi.r
-./a.out ; RET=$$? ; if [ $$RET = 0 ]; then echo It Works ; else echo Oops.. Fail ; fi
customsyscall:
rm -f a.out
$R -s customsyscall.r
$R -F -o a.out customsyscall.r
-./a.out ; RET=$$? ; if [ $$RET = 2 ]; then echo It Works ; else echo Oops.. Fail ; fi
exithello:
rm -f a.out
$R -s exithello.r
$R -F -o a.out exithello.r
-./a.out ; RET=$$? ; if [ $$RET = 2 ]; then echo It Works ; else echo Oops.. Fail ; fi