-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile.zpar.zh
66 lines (57 loc) · 3.38 KB
/
Makefile.zpar.zh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ifeq ($(CHINESE_DEPPARSER_LABELED), true)
CHINESE_DEPPARSER_D = -DLABELED
endif
ifeq ($(CHINESE_DEPPARSER_IMPL), combined)
CHINESE_DEPPARSER_D := $(CHINESE_DEPPARSER_D) -DCOMBINED
CHINESE_DEPPARSER_IMPL = nivre
endif
ifneq ("$(wildcard Makefile.d/Makefile.zh.postagger.$(CHINESE_TAGGER_IMPL))","")
include Makefile.d/Makefile.zh.postagger.$(CHINESE_TAGGER_IMPL)
else
ifneq ("$(wildcard $(SRC_TAGGER)/implementations/$(CHINESE_TAGGER_IMPL)/Makefile)","")
include $(SRC_TAGGER)/implementations/$(CHINESE_TAGGER_IMPL)/Makefile
else
include Makefile.d/Makefile.zh.postagger
endif
endif
ifneq ("$(wildcard Makefile.d/Makefile.zh.depparser.$(CHINESE_DEPPARSER_IMPL))","")
include Makefile.d/Makefile.zh.depparser.$(CHINESE_DEPPARSER_IMPL)
else
ifneq ("$(wildcard $(SRC_CHINESE_DEPPARSER)/implementations/$(CHINESE_DEPPARSER_IMPL)/Makefile)","")
include $(SRC_CHINESE_DEPPARSER)/implementations/$(CHINESE_DEPPARSER_IMPL)/Makefile
else
include Makefile.d/Makefile.zh.depparser
endif
endif
ifneq ("$(wildcard Makefile.d/Makefile.zh.deplabeler.$(CHINESE_DEPLABELER_IMPL))","")
include Makefile.d/Makefile.zh.deplabeler.$(CHINESE_DEPLABELER_IMPL)
else
ifneq ("$(wildcard $(SRC_CHINESE_DEPLABELER)/implementations/$(CHINESE_DEPLABELER_IMPL)/Makefile)","")
include $(SRC_CHINESE_DEPLABELER)/implementations/$(CHINESE_DEPLABELER_IMPL)/Makefile
else
include Makefile.d/Makefile.zh.deplabeler
endif
endif
ifneq ("$(wildcard Makefile.d/Makefile.zh.conparser.$(CHINESE_CONPARSER_IMPL))","")
include Makefile.d/Makefile.zh.conparser.$(CHINESE_CONPARSER_IMPL)
else
ifneq ("$(wildcard $(SRC_CHINESE_CONPARSER)/implementations/$(CHINESE_CONPARSER_IMPL)/Makefile)","")
include $(SRC_CHINESE_CONPARSER)/implementations/$(CHINESE_CONPARSER_IMPL)/Makefile
else
include Makefile.d/Makefile.zh.conparser
endif
endif
ifneq ("$(wildcard Makefile.d/Makefile.zh.segmentor.$(SEGMENTOR_IMPL))","")
include Makefile.d/Makefile.zh.segmentor.$(SEGMENTOR_IMPL)
else
ifneq ("$(wildcard $(SRC_SEGMENTOR)/implementations/$(SEGMENTOR_IMPL)/Makefile)","")
include $(SRC_SEGMENTOR)/implementations/$(SEGMENTOR_IMPL)/Makefile
else
include Makefile.d/Makefile.zh.segmentor
endif
endif
zpar.zh: $(OBJECT_DIR) $(DIST_DIR) $(OBJECT_DIR)/chinese.doc2snt.o $(OBJECT_DIR)/reader.o $(OBJECT_DIR)/writer.o $(OBJECT_DIR)/options.o $(OBJECT_DIR)/chinese.postagger.o $(OBJECT_TAGGER)/weight.o $(OBJECT_DIR)/chinese.conparser.o $(OBJECT_CONPARSER)/constituent.o $(OBJECT_CONPARSER)/weight.o $(OBJECT_DIR)/chinese.depparser.o $(OBJECT_DEPPARSER)/weight.o $(OBJECTS)
$(CXX) $(CXXFLAGS) -D$(CHINESE_CONPARSER_JOINT_OR_CASCADE) -DTARGET_LANGUAGE=chinese $(CHINESE_DEPPARSER_D) -I$(SRC_CHINESE) -I$(SRC_TAGGER) -I$(SRC_DOC2SNT) -I$(SRC_TAGGER)/implementations/$(CHINESE_TAGGER_IMPL) -I$(SRC_CHINESE_CONPARSER) -I$(SRC_CHINESE_CONPARSER)/implementations/$(CHINESE_CONPARSER_IMPL) -I$(SRC_CHINESE_DEPPARSER) -I$(SRC_CHINESE_DEPPARSER)/implementations/$(CHINESE_DEPPARSER_IMPL) -c $(SRC_CHINESE)/zpar.cpp -o $(OBJECT_DIR)/zpar.zh.o
$(LD) $(LDFLAGS) -o $(DIST_DIR)/zpar.zh $(OBJECT_DIR)/zpar.zh.o $(OBJECT_DIR)/chinese.postagger.o $(OBJECT_TAGGER)/weight.o $(OBJECT_DIR)/chinese.conparser.o $(OBJECT_CONPARSER)/weight.o $(OBJECT_DIR)/chinese.depparser.o $(OBJECT_DEPPARSER)/weight.o $(OBJECT_DIR)/chinese.doc2snt.o $(OBJECTS) $(OBJ_CHINESE_CONSTITUENT)
@echo The Chinese zpar system compiled successfully into $(DIST_DIR).
clean.zh: clean.zh.postagger clean.zh.conparser clean.zh.depparser clean.zh.deplabeler