First draft of a build system. This will run the hello function from our library.
16 lines
372 B
Bash
Executable File
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
|