2023-09-07 21:58:19 +02:00
|
|
|
#! /bin/bash
|
|
|
|
script_root=$(pwd)
|
2023-09-30 14:10:43 +02:00
|
|
|
CC:="clang"
|
2023-09-07 21:58:19 +02:00
|
|
|
|
|
|
|
echo "Creating folder for libraries"
|
|
|
|
mkdir lib
|
|
|
|
|
|
|
|
echo "Cloning simple_hashtable library"
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp
|
|
|
|
git clone https://h2939863.stratoserver.net/git/XOR/simple_hashtable.git
|
|
|
|
cd simple_hashtable
|
|
|
|
|
|
|
|
echo "Building simple_hashtable library"
|
2023-09-07 22:45:56 +02:00
|
|
|
$CC -c shash.c -o $script_root/lib/shash.o
|
2023-09-07 21:58:19 +02:00
|
|
|
|
|
|
|
echo "Delete source files"
|
|
|
|
cd $script_root
|
|
|
|
rm -rf tmp
|
|
|
|
|
2023-09-07 22:45:56 +02:00
|
|
|
echo "You can now run "make" to build the Assembler"
|