Merge pull request 'Build Script Tweaks' (#2) from build-patch into main

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2024-02-04 18:52:04 +00:00
2 changed files with 12 additions and 2 deletions

10
clean-all.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Clean up paths if they exist
if [[ -d "./build/" ]]; then
rm -rf ./build
fi
if [[ -d "./bin/" ]]; then
rm -rf ./bin
fi

View File

@@ -4,13 +4,13 @@
set echo on
mkdir -p build/
mkdir -p ../build/
# Get a list of all the .c files.
cFilenames=$(find . -type f -name "*.c")
assembly="quantum"
objLocation="build/libquantum.o"
objLocation="../build/libquantum.o"
compilerFlags="-g -c -fpic"
includeFlags="-Isrc"