-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (22 loc) · 784 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (22 loc) · 784 Bytes
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
32
33
34
DEPDIR = .dep
TARGET0 = mixtureModelCPU
CXX = g++-4.0
CXXFLAGS = -g -O3 -Wall -Wno-deprecated -fomit-frame-pointer -fexpensive-optimizations -fstrength-reduce -fschedule-insns2 -funroll-loops
LIBS = -lm
INCLUDES = -I.
DIRS0 = .
SOURCES0= $(foreach dir, $(DIRS0), $(wildcard $(dir)/*.cpp))
OBJS0 = $(SOURCES0:.cpp=.o)
.PHONY: all TAGS clean
all: $(TARGET0)
TAGS:
@find \( -name '*.c' -o -name '*.cc' -o -name '*.h' \)|etags -l c++ -
clean:
@rm -rf $(TARGET0) $(OBJS0) $(DEPDIR) `find . \\( -name '*~' \\)`
%.o: %.cpp
@$(CXX) -MMD -DDEBUG $(CXXFLAGS) $(INCLUDES) -c $< -o $@
@mkdir -p .dep/$(@D)
@mv $*.d $(DEPDIR)/$*.P
-include $(SOURCES0:%.cpp=$(DEPDIR)/%.P)
$(TARGET0): $(OBJS0)
@$(CXX) $(CXXFLAGS) $(OBJS0) $(LIBS) -o $(TARGET0)