-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile.zpar.en
59 lines (52 loc) · 3.36 KB
/
Makefile.zpar.en
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
ifeq ($(ENGLISH_DEPPARSER_LABELED), true)
ENGLISH_DEPPARSER_D = -DLABELED
endif
ifeq ($(ENGLISH_DEPPARSER_IMPL), combined)
ENGLISH_DEPPARSER_D := $(ENGLISH_DEPPARSER_D) -DCOMBINED
ENGLISH_DEPPARSER_IMPL = nivre
endif
ifneq ("$(wildcard Makefile.d/Makefile.english.postagger.$(ENGLISH_TAGGER_IMPL))","")
include Makefile.d/Makefile.en.postagger.$(ENGLISH_TAGGER_IMPL)
else
ifneq ("$(wildcard $(SRC_ENGLISH_TAGGER)/implementations/$(ENGLISH_TAGGER_IMPL)/Makefile)","")
include $(SRC_ENGLISH_TAGGER)/implementations/$(ENGLISH_TAGGER_IMPL)/Makefile
else
include Makefile.d/Makefile.en.postagger
endif
endif
ifneq ("$(wildcard Makefile.d/Makefile.en.deplabeler.$(ENGLISH_DEPLABELER_IMPL))","")
include Makefile.d/Makefile.en.deplabeler.$(ENGLISH_DEPLABELER_IMPL)
else
ifneq ("$(wildcard $(SRC_COMMON_DEPLABELER)/implementations/$(ENGLISH_DEPLABELER_IMPL)/Makefile)","")
include $(SRC_COMMON_DEPLABELER)/implementations/$(ENGLISH_DEPLABELER_IMPL)/Makefile
else
include Makefile.d/Makefile.en.deplabeler
endif
endif
ifeq ($(ENGLISH_DEPPARSER_IMPL),morphparser)
include Makefile.d/Makefile.en.depparser.morph
else
ifneq ("$(wildcard Makefile.d/Makefile.en.depparser.$(ENGLISH_DEPPARSER_IMPL))","")
include Makefile.d/Makefile.en.depparser.$(ENGLISH_DEPPARSER_IMPL)
else
ifneq ("$(wildcard $(SRC_COMMON_DEPPARSER)/implementations/$(ENGLISH_DEPPARSER_IMPL)/Makefile)","")
include $(SRC_COMMON_DEPPARSER)/implementations/$(ENGLISH_DEPPARSER_IMPL)/Makefile
else
include Makefile.d/Makefile.en.depparser
endif
endif
endif
ifneq ("$(wildcard Makefile.d/Makefile.en.conparser.$(ENGLISH_CONPARSER_IMPL))","")
include Makefile.d/Makefile.en.conparser.$(ENGLISH_CONPARSER_IMPL)
else
ifneq ("$(wildcard $(SRC_COMMON_CONPARSER)/implementations/$(ENGLISH_CONPARSER_IMPL)/Makefile)","")
include $(SRC_COMMON_CONPARSER)/implementations/$(ENGLISH_CONPARSER_IMPL)/Makefile
else
include Makefile.d/Makefile.en.conparser
endif
endif
zpar.en: $(OBJECT_DIR) $(DIST_DIR) $(OBJECT_DIR)/reader.o $(OBJECT_DIR)/writer.o $(OBJECT_DIR)/options.o $(OBJECT_DIR)/english.postagger.o $(OBJECT_ENGLISH_TAGGER)/weight.o $(OBJECT_DIR)/english.conparser.o $(OBJECT_ENGLISH_CONPARSER)/constituent.o $(OBJECT_ENGLISH_CONPARSER)/weight.o $(OBJECT_DIR)/english.depparser.o $(OBJECT_ENGLISH_DEPPARSER)/weight.o $(OBJECT_DIR)/english.deplabeler.o $(OBJECT_ENGLISH_DEPLABELER)/weight.o $(OBJECTS)
$(CXX) $(CXXFLAGS) -DTARGET_LANGUAGE=english $(ENGLISH_DEPPARSER_D) -I$(SRC_ENGLISH) -I$(SRC_ENGLISH_TAGGER) -I$(SRC_ENGLISH_TAGGER)/implementations/$(ENGLISH_TAGGER_IMPL) -I$(SRC_ENGLISH_CONPARSER) -I$(SRC_ENGLISH_CONPARSER)/implementations/$(ENGLISH_CONPARSER_IMPL) -I$(SRC_COMMON_DEPPARSER) -I$(SRC_COMMON_DEPPARSER)/implementations/$(ENGLISH_DEPPARSER_IMPL) -I$(SRC_COMMON_DEPLABELER) -I$(SRC_COMMON_DEPLABELER)/implementations/$(ENGLISH_DEPLABELER_IMPL) -c $(SRC_ENGLISH)/zpar.en.cpp -o $(OBJECT_DIR)/zpar.en.o
$(LD) $(LDFLAGS) -o $(DIST_DIR)/zpar.en $(OBJECT_DIR)/zpar.en.o $(OBJECT_ENGLISH_TAGGER)/weight.o $(OBJECT_DIR)/english.postagger.o $(OBJECT_DIR)/english.depparser.o $(OBJECT_ENGLISH_DEPPARSER)/weight.o $(OBJECT_DIR)/english.conparser.o $(OBJECT_ENGLISH_CONPARSER)/constituent.o $(OBJECT_ENGLISH_CONPARSER)/weight.o $(OBJECT_DIR)/english.deplabeler.o $(OBJECT_ENGLISH_DEPLABELER)/weight.o $(OBJECTS)
@echo The English zpar.en system compiled successfully into $(DIST_DIR).
clean.en: clean.en.postagger clean.en.conparser clean.en.depparser clean.en.deplabeler