Mercurial > hg > Members > masakoha > testcode
annotate regexParser/Makefile @ 167:3bf2c6d6d53e pairPro
move regexparser dir
author | masa |
---|---|
date | Sat, 19 Dec 2015 15:38:45 +0900 |
parents | c/regexParser/Makefile@42f4ee38196e |
children | 02031fb73af8 |
rev | line source |
---|---|
53
82fbc8478f7b
add regexParser
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
48
diff
changeset
|
1 TARGET= regexParser |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
2 MERGE= mergeTest |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
3 CFLAGS= -Wall -O0 -g |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
4 CC= clang++ |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
5 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
6 SRCS_TMP = $(wildcard *.cc) |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
7 SRCS_EXCLUDE = determinize.cc mergeTest.cc |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
8 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
9 OBJS = $(SRCS:.cc=.o) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
10 |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
11 SRCS_TMP1_MERGE = $(wildcard *.cc) |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
12 SRCS_EXCLUDE1_MERGE = determinize.cc main.cc |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
13 SRCS1_MERGE = $(filter-out $(SRCS_EXCLUDE1_MERGE),$(SRCS_TMP1_MERGE)) |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
14 OBJS_MERGE = $(SRCS1_MERGE:.cc=.o) |
45 | 15 |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
16 .cc.o: |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
17 $(CC) $(CFLAGS) -c $< -o $@ |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
18 |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
19 all: $(TARGET) $(MERGE) |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
20 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
21 $(TARGET):$(OBJS) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
22 $(CC) -o $@ $(OBJS) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
23 |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
24 $(MERGE):$(OBJS_MERGE) |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
25 $(CC) -o $@ $(OBJS_MERGE) |
45 | 26 |
27 clean: | |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
28 rm -f $(TARGET) $(MERGE) $(OBJS) $(OBJS_MERGE) |
45 | 29 rm -f *~ \#* |
78
23a96fefa643
add make test
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
53
diff
changeset
|
30 |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
31 .SUFFIXES: .cc .o |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
32 |
78
23a96fefa643
add make test
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
53
diff
changeset
|
33 test: |
135 | 34 ./$(TARGET) -regex 'a' |
35 ./$(TARGET) -regex 'ab' | |
36 ./$(TARGET) -regex 'ab*' | |
37 ./$(TARGET) -regex '(ab)*' | |
38 ./$(TARGET) -regex '(ab)*c' | |
39 ./$(TARGET) -regex '(ab)c' | |
40 ./$(TARGET) -regex '(a|b)c' | |
41 ./$(TARGET) -regex 'a(bc)*d' | |
42 ./$(TARGET) -regex 'abc*d' | |
43 ./$(TARGET) -regex '(ab)c*d' | |
44 ./$(TARGET) -regex 'a(b)c' | |
45 ./$(TARGET) -regex '(a|b|c)d' | |
46 ./$(TARGET) -regex '(a|b|c)*d' | |
47 ./$(TARGET) -regex '[a]' | |
48 ./$(TARGET) -regex '[ab]' | |
49 ./$(TARGET) -regex '[a-z]' | |
50 ./$(TARGET) -regex '[a-zA-Z]' | |
51 ./$(TARGET) -regex '[a-zA-Z]*' | |
52 ./$(TARGET) -regex 'a[a-zA-Z]*' | |
136 | 53 ./$(TARGET) -regex 'a([a-z])' |
54 ./$(TARGET) -regex 'a|[a-z]' | |
55 ./$(TARGET) -regex 'a|[a-z]*' | |
56 ./$(TARGET) -regex 'a*|[a-z]' | |
149
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
57 ./$(TARGET) -regex '[d-ga-c]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
58 ./$(TARGET) -regex '[d-ga-d]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
59 ./$(TARGET) -regex '[d-ga-e]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
60 ./$(TARGET) -regex '[d-ga-f]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
61 ./$(TARGET) -regex '[d-ga-h]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
62 ./$(TARGET) -regex '[d-gd-e]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
63 ./$(TARGET) -regex '[d-gd-f]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
64 ./$(TARGET) -regex '[d-gd-h]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
65 ./$(TARGET) -regex '[d-ge-f]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
66 ./$(TARGET) -regex '[d-ge-g]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
67 ./$(TARGET) -regex '[d-ge-i]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
68 ./$(TARGET) -regex '[d-gg-i]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
69 ./$(TARGET) -regex '[d-gh-i]' |
151 | 70 ./$(TARGET) -regex '[d-ga-cx-z]' |
71 ./$(TARGET) -regex '[d-ga-de-d]' | |
72 ./$(TARGET) -regex '[d-ga-db-e]' | |
73 ./$(TARGET) -regex '[d-gh-ja-e]' | |
162 | 74 |
75 merge_test: | |
164
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
76 ./$(MERGE) -regex '[f-i]' -merge '[d-e]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
77 ./$(MERGE) -regex '[f-i]' -merge '[d-f]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
78 ./$(MERGE) -regex '[f-i]' -merge '[d-g]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
79 ./$(MERGE) -regex '[f-i]' -merge '[d-i]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
80 ./$(MERGE) -regex '[f-i]' -merge '[d-k]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
81 ./$(MERGE) -regex '[f-i]' -merge '[f-g]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
82 ./$(MERGE) -regex '[f-i]' -merge '[f-i]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
83 ./$(MERGE) -regex '[f-i]' -merge '[f-k]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
84 ./$(MERGE) -regex '[f-i]' -merge '[g-h]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
85 ./$(MERGE) -regex '[f-i]' -merge '[g-i]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
86 ./$(MERGE) -regex '[f-i]' -merge '[g-k]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
87 ./$(MERGE) -regex '[f-i]' -merge '[i-k]' |
93d3ad1d20ed
add mergeTest.cc
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
88 ./$(MERGE) -regex '[f-i]' -merge '[j-k]' |
165
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
89 ./$(MERGE) -regex '[c-ef-i]' -merge '[d-e]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
90 ./$(MERGE) -regex '[c-ef-i]' -merge '[d-f]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
91 ./$(MERGE) -regex '[c-ef-i]' -merge '[d-g]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
92 ./$(MERGE) -regex '[c-ef-i]' -merge '[d-i]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
93 ./$(MERGE) -regex '[c-ef-ij-m]' -merge '[d-k]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
94 ./$(MERGE) -regex '[f-ij-m]' -merge '[f-k]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
95 ./$(MERGE) -regex '[f-ij-m]' -merge '[g-k]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
96 ./$(MERGE) -regex '[f-ij-m]' -merge '[i-k]' |
42f4ee38196e
fix test date
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
164
diff
changeset
|
97 ./$(MERGE) -regex '[f-ij-m]' -merge '[j-k]' |