Build Script Tweaks #2
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
|
set echo on
|
||||||
|
|
||||||
mkdir -p build/
|
mkdir -p ../build/
|
||||||
|
|
||||||
# Get a list of all the .c files.
|
# Get a list of all the .c files.
|
||||||
cFilenames=$(find . -type f -name "*.c")
|
cFilenames=$(find . -type f -name "*.c")
|
||||||
|
|
||||||
assembly="quantum"
|
assembly="quantum"
|
||||||
objLocation="build/libquantum.o"
|
objLocation="../build/libquantum.o"
|
||||||
compilerFlags="-g -c -fpic"
|
compilerFlags="-g -c -fpic"
|
||||||
includeFlags="-Isrc"
|
includeFlags="-Isrc"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user