blob: 66db1b486a4326a494c8b0186fa62c4916fd2322 [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
Marc Kupietz613edbf2018-01-11 21:38:03 +01009word2vec : word2vecExt.c makefile ../../CollocatorDB/libcollocatordb.a
10 $(CC) $(CFLAGS) word2vecExt.c ../../CollocatorDB/libcollocatordb.a /vol/work/kupietz/rocksdb/librocksdb.a -o word2vec -I../../CollocatorDB -L../../CollocatorDB -L/usr/local/lib -lstdc++ -lm -lrt -lsnappy -lz -lbz2 -llz4 -lzstd
11
Marc Kupietzd6f9c712016-03-16 11:50:56 +010012weightedWord2vec : weightedWord2vec.c
13 $(CC) weightedWord2vec.c -o weightedWord2vec $(CFLAGS)
14cngram2vec : cngram2vec.c
15 $(CC) cngram2vec.c -o cngram2vec $(CFLAGS)
16wordless2vec : wordless2vec.c
17 $(CC) wordless2vec.c -o wordless2vec $(CFLAGS)
18word2phrase : word2phrase.c
19 $(CC) word2phrase.c -o word2phrase $(CFLAGS)
20distance : distance.c
21 $(CC) distance.c -o distance $(CFLAGS)
22distance_txt : distance_txt.c
23 $(CC) distance_txt.c -o distance_txt $(CFLAGS)
24distance_fast : distance_fast.c
25 $(CC) distance_fast.c -o distance_fast $(CFLAGS)
26kmeans_txt : kmeans_txt.c
27 $(CC) kmeans_txt.c -o kmeans_txt $(CFLAGS)
28word-analogy : word-analogy.c
29 $(CC) word-analogy.c -o word-analogy $(CFLAGS)
30compute-accuracy : compute-accuracy.c
31 $(CC) compute-accuracy.c -o compute-accuracy $(CFLAGS)
32clean:
33 rm -rf word2vec weightedWord2vec cngram2vec wiord2phrase distance word-analogy compute-accuracy distance_txt kmeans_txt