add compile and run script in example dir

This commit is contained in:
2023-10-23 13:29:44 +02:00
parent 3e75bf3587
commit 75640894c1
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
gcc -o x1 eg1.c -I../include_ytest/include/ -L.. -lytest $1
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
if [ "$#" -le 0 ] ; then
echo "usage : $0 <option>"
echo "for example: $0 \"-p=3 -r\""
fi
LD_LIBRARY_PATH=.. ./x1 $1