Files
quantum-utils/test_stuff/build.sh
Wesley Irvin 3b48433ec9 First build system
First draft of a build system. This will run the hello function from our
library.
2024-02-04 13:17:57 -05:00

16 lines
372 B
Bash
Executable File

#!/bin/bash
#Build script for test_stuff
set echo on
# Get a list of all the .c files.
cFilenames=$(find . -type f -name "*.c")
assembly="test_stuff"
compilerFlags="-g -fpic"
includeFlags="-Isrc -I../quantum/src/"
linkerFlags="-L../bin/ -lquantum -Wl,-rpath,."
echo "Building $assembly..."
gcc $cFilenames $compilerFlags -o ../bin/$assembly $includeFlags $linkerFlags