diff --git a/examples/make.py b/examples/make.py new file mode 100644 index 0000000000000000000000000000000000000000..b7efdc620d00d7d68accc8473db228d315e0fc89 --- /dev/null +++ b/examples/make.py @@ -0,0 +1,15 @@ +import os, glob, subprocess +script_path = os.path.dirname(os.path.realpath(__file__)); +for c_file in glob.glob(script_path + "/*/*.c", recursive=False): + print("compiling", c_file) + args = [ + "gcc", + "-L", + "../target/release", + "-lreowolf_rs", + "-Wl,-R../target/release", + c_file, + "-o", + c_file[:-2] + ]; + subprocess.run(args); \ No newline at end of file