File size: 550 Bytes
b5aeec1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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