First build system

First draft of a build system. This will run the hello function from our
library.
This commit is contained in:
2024-02-04 13:17:57 -05:00
parent 8d592c02c7
commit 3b48433ec9
7 changed files with 82 additions and 0 deletions

15
test_stuff/build.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/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

7
test_stuff/src/main.c Normal file
View File

@@ -0,0 +1,7 @@
#include <test.h>
int main() {
hello_quantum();
return 0;
}