summaryrefslogtreecommitdiffstats
path: root/source/Code/genmakefile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/Code/genmakefile.sh')
-rwxr-xr-xsource/Code/genmakefile.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/Code/genmakefile.sh b/source/Code/genmakefile.sh
new file mode 100755
index 0000000..0ea26a7
--- /dev/null
+++ b/source/Code/genmakefile.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+cat makefile | grep -v "^SRC +=" > makefile.new
+for row in $(find | grep .c$); do
+ if [ "$row" != "./main.c" ]; then
+ echo "SRC += $row" >> makefile.new
+ fi
+done
+rm makefile
+mv makefile.new makefile
+