-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 864 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 864 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
CXXFLAGS = -std=c++11 -O3 -funroll-loops -Werror -Wall
GOOGLE ?= 1
ifeq (${GOOGLE}, 0)
CXXFLAGS += -DNOGOOGLE
endif
fast_align_ng: src/fast_align_ng.o src/model.o src/reader.o src/threaded_output.o
$(CXX) $(CXXFLAGS) -o fast_align_ng src/fast_align_ng.o src/model.o src/reader.o src/threaded_output.o -lpthread
src/fast_align_ng.o: src/fast_align_ng.cc src/*.h
$(CXX) $(CXXFLAGS) -c $< -o $@ -lpthread
src/model.o: src/model.cc src/model.h src/ttables.h src/corpus.h src/map_type.h
$(CXX) $(CXXFLAGS) -c $< -o $@ -lpthread
src/reader.o: src/reader.cc src/reader.h src/threaded_output.h src/model.h src/threaded_output.h src/corpus.h src/map_type.h
$(CXX) $(CXXFLAGS) -c $< -o $@ -lpthread
src/threaded_output.o: src/threaded_output.cc src/threaded_output.h
$(CXX) $(CXXFLAGS) -c $< -o $@ -lpthread
.PHONY: clean
clean:
rm src/*.o fast_align_ng