source: proto/SymbolTable/Makefile @ 1666

Last change on this file since 1666 was 1666, checked in by vla24, 8 years ago

SymbolTable?: Added natural language dictionary templates that uses symbol table

File size: 4.1 KB
Line 
1DICTIONARY_OUTFILE=src/dictionary.cpp
2
3PABLO_DICTIONARY=dictionary.py
4PABLO_DICTIONARY_ID=dictionary_id.py
5PABLO_DICTIONARY_PBGS_ID=dictionary_pbgs_id.py
6PABLO_DICTIONARY_PBGS_ID_ADV=dictionary_pbgs_id_adv.py
7PABLO_DICTIONARY_PBGS_LOG=dictionary_pbgs_log.py
8PABLO_DICTIONARY_PBGS_DIV=dictionary_pbgs_div.py
9
10DICTIONARY_STL_TEMPLATE=dictionary_stl_template.cpp
11DICTIONARY_LS_TEMPLATE=dictionary_ls_template.cpp
12DICTIONARY_HASH_TEMPLATE=dictionary_hash_template.cpp
13DICTIONARY_IDENTITY_TEMPLATE=dictionary_identity_template.cpp
14DICTIONARY_PBGS_ID_TEMPLATE=dictionary_pbgs_identity_template.cpp
15DICTIONARY_PBGS_LOG_TEMPLATE=dictionary_pbgs_log_template.cpp
16DICTIONARY_PBGS_DIV_TEMPLATE=dictionary_pbgs_div_template.cpp
17
18XMLWF_OUTFILE=src/xmlwf.cpp
19
20PABLO_SRCFILE=../parabix2/parabix2_pablo.py
21PABLO_COMPILER=../Compiler/pablomain.py
22
23PABLO_SYMTAB_ID=parabix2_symtab_id.py
24PABLO_SYMTAB_PBS=parabix2_symtab_pbs.py
25PABLO_SYMTAB_PBS_LOG=parabix2_symtab_pbs_log.py
26PABLO_SYMTAB_PBS_DIV=parabix2_symtab_pbs_div.py
27PABLO_SYMTAB_PBS_ADV=parabix2_symtab_pbs_adv.py
28
29SYMBOLTABLE_STL_TEMPLATE=symtab_stl_template.cpp
30SYMBOLTABLE_LS_TEMPLATE=symtab_ls_template.cpp
31HASH_SYMBOLTABLE_TEMPLATE=symtab_hash_template.cpp
32SYMBOLTABLE_IDENTITY_TEMPLATE=symtab_identity_template.cpp
33PBGS_SYMBOLTABLE_ID_TEMPLATE=symtab_pbgs_identity_template.cpp
34PBGS_SYMBOLTABLE_LOG_TEMPLATE=symtab_pbgs_log_template.cpp
35PBGS_SYMBOLTABLE_DIV_TEMPLATE=symtab_pbgs_div_template.cpp
36
37PABLO_FLAGS=#-a
38
39dict_stl:       $(PABLO_DICTIONARY)
40        python $(PABLO_COMPILER) $(PABLO_DICTIONARY) -t $(DICTIONARY_STL_TEMPLATE) -o $(DICTIONARY_OUTFILE)
41
42dict_ls:        $(PABLO_DICTIONARY)
43        python $(PABLO_COMPILER) $(PABLO_DICTIONARY) -t $(DICTIONARY_LS_TEMPLATE) -o $(DICTIONARY_OUTFILE)
44
45dict_hash:      $(PABLO_DICTIONARY)
46        python $(PABLO_COMPILER) $(PABLO_DICTIONARY) -t $(DICTIONARY_HASH_TEMPLATE) -o $(DICTIONARY_OUTFILE)
47
48dict_id:        $(PABLO_DICTIONARY_ID)
49        python $(PABLO_COMPILER) $(PABLO_DICTIONARY_ID) -t $(DICTIONARY_IDENTITY_TEMPLATE) -o $(DICTIONARY_OUTFILE)
50
51dict_pbgs_id:   $(PABLO_DICTIONARY_PBGS_ID) # Paralel bitstream based group sorting
52        python $(PABLO_COMPILER) $(PABLO_DICTIONARY_PBGS_ID) -t $(DICTIONARY_PBGS_ID_TEMPLATE) -o $(DICTIONARY_OUTFILE)
53
54dict_pbgs_id_adv:       $(PABLO_DICTIONARY_PBGS_ID_ADV) # Paralel bitstream based group sorting
55        python $(PABLO_COMPILER) $(PABLO_DICTIONARY_PBGS_ID_ADV) -t $(DICTIONARY_PBGS_ID_TEMPLATE) -o $(DICTIONARY_OUTFILE)
56
57dict_pbgs_log:  $(PABLO_DICTIONARY_PBGS_LOG) # Paralel bitstream based group sorting
58        python $(PABLO_COMPILER) $(PABLO_DICTIONARY_PBGS_LOG) -t $(DICTIONARY_PBGS_LOG_TEMPLATE) -o $(DICTIONARY_OUTFILE)
59
60dict_pbgs_div:  $(PABLO_DICTIONARY_PBGS_DIV) # Paralel bitstream based group sorting
61        python $(PABLO_COMPILER) $(PABLO_DICTIONARY_PBGS_DIV) -t $(DICTIONARY_PBGS_DIV_TEMPLATE) -o $(DICTIONARY_OUTFILE)
62
63symtab_stl:     $(PABLO_SRCFILE)
64        python $(PABLO_COMPILER) $(PABLO_SRCFILE) -t $(SYMBOLTABLE_STL_TEMPLATE) -o $(XMLWF_OUTFILE)
65
66symtab_ls:      $(PABLO_SRCFILE)
67        python $(PABLO_COMPILER) $(PABLO_SRCFILE) -t $(SYMBOLTABLE_LS_TEMPLATE) -o $(XMLWF_OUTFILE)
68
69symtab_hash:    $(PABLO_SRCFILE)
70        python $(PABLO_COMPILER) $(PABLO_SRCFILE) -t $(HASH_SYMBOLTABLE_TEMPLATE) -o $(XMLWF_OUTFILE)
71
72symtab_id:      $(PABLO_SYMTAB_ID) # Paralel bitstream based group sorting
73        python $(PABLO_COMPILER) $(PABLO_FLAGS) $(PABLO_SYMTAB_ID) -t $(SYMBOLTABLE_IDENTITY_TEMPLATE) -o $(XMLWF_OUTFILE)
74
75symtab_pbgs_id: $(PABLO_SYMTAB_PBS) # Paralel bitstream based group sorting
76        python $(PABLO_COMPILER) $(PABLO_FLAGS) $(PABLO_SYMTAB_PBS) -t $(PBGS_SYMBOLTABLE_ID_TEMPLATE) -o $(OUTFILE)
77
78symtab_pbgs_id_adv:$(PABLO_SYMTAB_PBS_ADV) # Paralel bitstream based group sorting using Advance32 and Interpose32
79        python $(PABLO_COMPILER) $(PABLO_FLAGS) $(PABLO_SYMTAB_PBS_ADV) -t $(PBGS_SYMBOLTABLE_ID_TEMPLATE) -o $(OUTFILE)
80
81symtab_pbgs_log:$(PABLO_SYMTAB_PBS_LOG)
82        python $(PABLO_COMPILER) $(PABLO_FLAGS) $(PABLO_SYMTAB_PBS_LOG) -t $(PBGS_SYMBOLTABLE_LOG_TEMPLATE) -o $(OUTFILE)
83
84symtab_pbgs_div:$(PABLO_SYMTAB_PBS_DIV)
85        python $(PABLO_COMPILER) $(PABLO_FLAGS) $(PABLO_SYMTAB_PBS_DIV) -t $(PBGS_SYMBOLTABLE_DIV_TEMPLATE) -o $(OUTFILE)
86
87pablo_help:
88        python  $(PABLO_COMPILER) -h
89
90symtab_clean:
91        rm -f $(XMLWF_OUTFILE)
92
93
Note: See TracBrowser for help on using the repository browser.