-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile-hmmAligner
28 lines (21 loc) · 1.24 KB
/
Makefile-hmmAligner
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
CC=mpiCC
SINGLE=-c
BEFORE=-x c++ -std=c++11
LIBS=-llbfgs -lfst -ldl -lboost_mpi -lboost_serialization -lboost_thread -lboost_system -lcmph
OPT=-O3
INC=-I/usr/local/packages/gcc/4.7.2/include/c++/4.7.2/
DEBUG=-g -ggdb
all: train-hmmAligner
# specific to the word alignment hmm model
train-hmmAligner: train-hmmAligner.o
$(CC) train-hmmAligner.o HmmAligner.o FstUtils.o IbmModel1.o $(LIBS) -o train-hmmAligner
train-hmmAligner.o: IbmModel1.o FstUtils.o HmmAligner.o alignment/train-hmmAligner.cc core/LearningInfo.h wammar-utils/StringUtils.h
$(CC) $(BEFORE) $(SINGLE) alignment/train-hmmAligner.cc $(OPT)
HmmAligner.o: FstUtils.o alignment/HmmAligner.cc alignment/HmmAligner.h core/LearningInfo.h wammar-utils/StringUtils.h core/MultinomialParams.h
$(CC) $(BEFORE) $(SINGLE) alignment/HmmAligner.cc $(OPT)
IbmModel1.o: FstUtils.o alignment/IbmModel1.cc alignment/IbmModel1.h core/LearningInfo.h wammar-utils/StringUtils.h alignment/IAlignmentModel.h core/MultinomialParams.h core/VocabEncoder.h
$(CC) $(BEFORE) $(SINGLE) alignment/IbmModel1.cc $(OPT)
FstUtils.o: wammar-utils/FstUtils.cc wammar-utils/FstUtils.h
$(CC) $(BEFORE) $(SINGLE) wammar-utils/FstUtils.cc $(OPT)
clean:
rm -rf FstUtils.o IbmModel1.o HmmAligner.o train-hmmAligner.o train-hmmAligner