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:
10
clean-all.sh
Executable file
10
clean-all.sh
Executable 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
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user