/
makefile
31 lines (23 loc) · 1.1 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Author: Justin Kinney
# Date: Feb 2009
#COMPILE = g++ -Wall -Wshadow -W -O3 -g -o meshalyzer-lite
#COMPILE = g++ -Wall -Wshadow -W -O3 -g -o meshalyzer -L/home/jkinney/install/googleperf/lib -lprofiler -ltcmalloc
#COMPILE = g++ -Wall -Wshadow -W -O3 -g -o meshalyzer-node56 -L/home/jkinney/install/googleperf64/lib -lprofiler -ltcmalloc
#COMPILE = g++ -m64 -Wall -Wshadow -W -O3 -g -o meshalyzer64 -L/home/jkinney/install/googleperf64/lib -lprofiler -ltcmalloc
CXX = g++
FLAGS = -Wall -Wshadow -Wextra -Weffc++ -O3 -g -ffast-math -std=c++0x
#LIBS = -L/home/jkinney/install/googleperf/lib -lprofiler -ltcmalloc
LIBS =
SRCS = boundary.cc box.cc container.cc controls.cc edge.cc face.cc \
face_pair.cc meshalyzer.cc object.cc space.cc stats.cc vertex.cc
OBJS = $(SRCS:%.cc=%.o)
DEPSINCLUDE = $(addprefix .deps/,$(SRCS:%.cc=%.d))
.deps/%.d: %.cc
mkdir -p .deps; $(SHELL) -vec '$(CXX) -MM $(FLAGS) $< | sed '\''s@\($*\)\.o[ :]*@\1.o $@ : @g'\'' > $@; [ -s $@ ] || rm -f $@'
meshalyzer: $(OBJS)
$(CXX) $(FLAGS) $(OBJS) $(LIBS) -o meshalyzer
%.o: %.cc
$(CXX) $(FLAGS) -c $< -o $@
clean:
rm *.o
include $(DEPSINCLUDE)