wang2vec: move to the right position
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..0ea6193
--- /dev/null
+++ b/makefile
@@ -0,0 +1,32 @@
+CC = gcc
+#Using -Ofast instead of -O3 might result in faster code, but is supported only by newer GCC versions
+CFLAGS = -lm -pthread -O3 -march=k8 -mtune=k8 -Wall -funroll-loops
+#CFLAGS = -m64 -march=k8 -mtune=k8 -lm -pthread -O3 -Wall -funroll-loops 
+
+
+all: word2vec cngram2vec weightedWord2vec wordless2vec word2phrase distance word-analogy compute-accuracy distance_txt distance_fast kmeans_txt
+
+word2vec : word2vecExt.c
+	$(CC) word2vecExt.c -o word2vec $(CFLAGS)
+weightedWord2vec : weightedWord2vec.c
+	$(CC) weightedWord2vec.c -o weightedWord2vec $(CFLAGS)
+cngram2vec : cngram2vec.c
+	$(CC) cngram2vec.c -o cngram2vec $(CFLAGS)
+wordless2vec : wordless2vec.c
+	$(CC) wordless2vec.c -o wordless2vec $(CFLAGS)
+word2phrase : word2phrase.c
+	$(CC) word2phrase.c -o word2phrase $(CFLAGS)
+distance : distance.c
+	$(CC) distance.c -o distance $(CFLAGS)
+distance_txt : distance_txt.c
+	$(CC) distance_txt.c -o distance_txt $(CFLAGS)
+distance_fast : distance_fast.c
+	$(CC) distance_fast.c -o distance_fast $(CFLAGS)
+kmeans_txt : kmeans_txt.c
+	$(CC) kmeans_txt.c -o kmeans_txt $(CFLAGS)
+word-analogy : word-analogy.c
+	$(CC) word-analogy.c -o word-analogy $(CFLAGS)
+compute-accuracy : compute-accuracy.c
+	$(CC) compute-accuracy.c -o compute-accuracy $(CFLAGS)
+clean:
+	rm -rf word2vec weightedWord2vec cngram2vec wiord2phrase distance word-analogy compute-accuracy distance_txt kmeans_txt