-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (24 loc) · 779 Bytes
/
Makefile
File metadata and controls
27 lines (24 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
gmp:
sudo apt install lunzip
wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz
lunzip gmp-6.2.1.tar.lz
tar -xf gmp-6.2.1.tar
cd gmp-6.2.1 && ./configure && make && make check && sudo make install
install_flex:
sudo apt install texinfo
sudo apt install help2man
sudo apt install autopoint
sudo apt install bison
git clone https://github.com/westes/flex
cd flex && bash autogen.sh && ./configure && make && sudo make install && sudo cp src/flex /usr/bin/
sds:
git clone https://github.com/antirez/sds.git
cp sds/sds* .
edit_distance:
#./edit_distance.out abc a
#abc is the src
#a is the dest
#edit distance 2, delete c, delete b, a = a
flex -Cf edit_distance.l
gcc -lfl -g lex.yy.c sds.c -lm -o edit_distance.out
./edit_distance.out edit_distance_test