summaryrefslogtreecommitdiff
path: root/hadoop/wordcount/pipes/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'hadoop/wordcount/pipes/Makefile')
-rw-r--r--hadoop/wordcount/pipes/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/hadoop/wordcount/pipes/Makefile b/hadoop/wordcount/pipes/Makefile
new file mode 100644
index 0000000..c892bb8
--- /dev/null
+++ b/hadoop/wordcount/pipes/Makefile
@@ -0,0 +1,12 @@
+CC = g++
+HADOOP_INSTALL = ../hadoop-0.20.205.0
+PLATFORM = Linux-amd64-64
+CPPFLAGS = -I$(HADOOP_INSTALL)/c++/$(PLATFORM)/include
+
+wordcount: wordcount.cc
+ $(CC) $(CPPFLAGS) $< -Wall -L$(HADOOP_INSTALL)/c++/$(PLATFORM)/lib -lhadooppipes \
+ -lhadooputils -lcrypto -lpthread -g -O2 -static -o $@
+
+wordcountc: wordcountc.cc
+ $(CC) $(CPPFLAGS) $< -Wall -L$(HADOOP_INSTALL)/c++/$(PLATFORM)/lib -lhadooppipes \
+ -lhadooputils -lcrypto -lpthread -g -O2 -static -o $@