blob: 0ea61938240bd03d48f7bde944df1794f558a89f [file] [log] [blame]
Marc Kupietzd6f9c712016-03-16 11:50:56 +01001CC = gcc
2#Using -Ofast instead of -O3 might result in faster code, but is supported only by newer GCC versions
3CFLAGS = -lm -pthread -O3 -march=k8 -mtune=k8 -Wall -funroll-loops
4#CFLAGS = -m64 -march=k8 -mtune=k8 -lm -pthread -O3 -Wall -funroll-loops
5
6
7all: word2vec cngram2vec weightedWord2vec wordless2vec word2phrase distance word-analogy compute-accuracy distance_txt distance_fast kmeans_txt
8
9word2vec : word2vecExt.c
10 $(CC) word2vecExt.c -o word2vec $(CFLAGS)
11weightedWord2vec : weightedWord2vec.c
12 $(CC) weightedWord2vec.c -o weightedWord2vec $(CFLAGS)
13cngram2vec : cngram2vec.c
14 $(CC) cngram2vec.c -o cngram2vec $(CFLAGS)
15wordless2vec : wordless2vec.c
16 $(CC) wordless2vec.c -o wordless2vec $(CFLAGS)
17word2phrase : word2phrase.c
18 $(CC) word2phrase.c -o word2phrase $(CFLAGS)
19distance : distance.c
20 $(CC) distance.c -o distance $(CFLAGS)
21distance_txt : distance_txt.c
22 $(CC) distance_txt.c -o distance_txt $(CFLAGS)
23distance_fast : distance_fast.c
24 $(CC) distance_fast.c -o distance_fast $(CFLAGS)
25kmeans_txt : kmeans_txt.c
26 $(CC) kmeans_txt.c -o kmeans_txt $(CFLAGS)
27word-analogy : word-analogy.c
28 $(CC) word-analogy.c -o word-analogy $(CFLAGS)
29compute-accuracy : compute-accuracy.c
30 $(CC) compute-accuracy.c -o compute-accuracy $(CFLAGS)
31clean:
32 rm -rf word2vec weightedWord2vec cngram2vec wiord2phrase distance word-analogy compute-accuracy distance_txt kmeans_txt