-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile-latentCrfParser
35 lines (26 loc) · 1.97 KB
/
Makefile-latentCrfParser
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
35
CC=mpiCC
SINGLE=-c
BEFORE=-x c++ -std=c++11
LIBS=-llbfgs -lfst -ldl -lboost_mpi -lboost_program_options -lboost_serialization -lboost_thread -lboost_system -lrt
OPT=-Wall -O3 -g
all: train-latentCrfParser
# specific to the parsing model
train-latentCrfParser: train-latentCrfParser.o
$(CC) train-latentCrfParser.o IbmModel1.o FstUtils.o LatentCrfModel.o LatentCrfParser.o LogLinearParams.o fdict.o -o parsing/train-latentCrfParser $(LIBS)
train-latentCrfParser.o: IbmModel1.o LatentCrfModel.o LatentCrfParser.o parsing/train-latentCrfParser.cc wammar-utils/StringUtils.h core/LearningInfo.h FstUtils.o
$(CC) $(BEFORE) $(SINGLE) parsing/train-latentCrfParser.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)
LatentCrfParser.o: LatentCrfModel.o parsing/LatentCrfParser.h parsing/LatentCrfParser.cc cdec-utils/logval.h
$(CC) $(BEFORE) $(SINGLE) parsing/LatentCrfParser.cc $(OPT)
# Share code
LatentCrfModel.o: LogLinearParams.o core/LatentCrfModel.cc core/LatentCrfModel.h core/LatentCrfModel-inl.h wammar-utils/Samplers.h core/VocabEncoder.h core/UnsupervisedSequenceTaggingModel.h core/LearningInfo.h core/Functors.h cdec-utils/dict.h cdec-utils/fdict.h cdec-utils/fast_sparse_vector.h core/MultinomialParams.h core/BasicTypes.h
$(CC) $(BEFORE) $(SINGLE) core/LatentCrfModel.cc $(OPT)
LogLinearParams.o: fdict.o core/LogLinearParams.cc core/LogLinearParams.h core/LogLinearParams-inl.h core/BasicTypes.h
$(CC) $(BEFORE) $(SINGLE) core/LogLinearParams.cc $(OPT)
FstUtils.o: wammar-utils/FstUtils.cc wammar-utils/FstUtils.h
$(CC) $(BEFORE) $(SINGLE) wammar-utils/FstUtils.cc $(OPT)
fdict.o:
$(CC) $(BEFORE) $(SINGLE) cdec-utils/fdict.cc $(OPT)
clean:
rm -rf FstUtils.o fdict.o LogLinearParams.o LatentCrfModel.o train-latentCrfParser.o train-latentCrfParser LatentCrfParser.o IbmModel1.o