urdu-nlp / Makefile
ReySajju742's picture
Upload 51 files (#1)
b5aeec1 verified
raw
history blame contribute delete
550 Bytes
# 1.2: need to make sure opt.o goes in the right order to get the right scope on the command-line arguments
# Use this for Linux
ifeq ($(shell uname),Linux)
files=$(subst .cc,.o,basic/logging.cc $(shell /bin/ls *.cc) $(shell /bin/ls basic/*.cc | grep -v logging.cc))
else
files=$(subst .cc,.o,basic/opt.cc $(shell /bin/ls *.cc) $(shell /bin/ls basic/*.cc | grep -v opt.cc))
endif
wcluster: $(files)
g++ -Wall -g -std=c++0x -O3 -o wcluster $(files) -lpthread
%.o: %.cc
g++ -Wall -g -O3 -std=c++0x -o $@ -c $<
clean:
rm wcluster basic/*.o *.o