word2vec/makefile

20 lines
682 B
Makefile
Raw Normal View History

2013-07-30 07:37:21 +02:00
CC = gcc
2013-08-02 01:29:49 +02:00
#The -Ofast might not work with older versions of gcc; in that case, use -O2
2013-07-30 07:37:21 +02:00
CFLAGS = -lm -pthread -Ofast -march=native -Wall -funroll-loops -Wno-unused-result
2013-08-01 21:31:03 +02:00
all: word2vec word2phrase distance word-analogy compute-accuracy
2013-07-30 07:37:21 +02:00
word2vec : word2vec.c
$(CC) word2vec.c -o word2vec $(CFLAGS)
2013-08-01 01:02:52 +02:00
word2phrase : word2phrase.c
$(CC) word2phrase.c -o word2phrase $(CFLAGS)
distance : distance.c
$(CC) distance.c -o distance $(CFLAGS)
word-analogy : word-analogy.c
$(CC) word-analogy.c -o word-analogy $(CFLAGS)
2013-08-01 21:31:03 +02:00
compute-accuracy : compute-accuracy.c
$(CC) compute-accuracy.c -o compute-accuracy $(CFLAGS)
2013-07-30 07:37:21 +02:00
clean:
2013-08-01 21:31:03 +02:00
rm -rf word2vec word2phrase distance word-analogy compute-accuracy