Mercurial > hg > Applications > Grep
annotate c/regexParser/Makefile @ 153:e2e717fbeb2f pairPro
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Dec 2015 14:02:41 +0900 |
parents | 1c9e8ba64f6a |
children | d7f762404113 |
rev | line source |
---|---|
53
82fbc8478f7b
add regexParser
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
48
diff
changeset
|
1 TARGET= regexParser |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
2 CFLAGS= -Wall -O0 -g |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
3 CC= clang++ |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
4 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
5 SRCS_TMP = $(wildcard *.cc) |
153 | 6 SRCS_EXCLUDE = determinize.cc |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
7 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
|
8 OBJS = $(SRCS:.cc=.o) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
9 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
10 .SUFFIXES: .cc .o |
45 | 11 |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
12 .cc.o: |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
13 $(CC) $(CFLAGS) -c $< -o $@ |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
14 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
15 all: $(TARGET) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
16 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
17 $(TARGET):$(OBJS) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
18 $(CC) -o $@ $(OBJS) |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
19 |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
20 link: |
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
21 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) |
45 | 22 |
23 clean: | |
79
52da06c3f050
add printTree.cc & fix Makefile
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
78
diff
changeset
|
24 rm -f $(TARGET) $(OBJS) |
45 | 25 rm -f *~ \#* |
78
23a96fefa643
add make test
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
53
diff
changeset
|
26 |
23a96fefa643
add make test
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
53
diff
changeset
|
27 test: |
135 | 28 ./$(TARGET) -regex 'a' |
29 ./$(TARGET) -regex 'ab' | |
30 ./$(TARGET) -regex 'ab*' | |
31 ./$(TARGET) -regex '(ab)*' | |
32 ./$(TARGET) -regex '(ab)*c' | |
33 ./$(TARGET) -regex '(ab)c' | |
34 ./$(TARGET) -regex '(a|b)c' | |
35 ./$(TARGET) -regex 'a(bc)*d' | |
36 ./$(TARGET) -regex 'abc*d' | |
37 ./$(TARGET) -regex '(ab)c*d' | |
38 ./$(TARGET) -regex 'a(b)c' | |
39 ./$(TARGET) -regex '(a|b|c)d' | |
40 ./$(TARGET) -regex '(a|b|c)*d' | |
41 ./$(TARGET) -regex '[a]' | |
42 ./$(TARGET) -regex '[ab]' | |
43 ./$(TARGET) -regex '[a-z]' | |
44 ./$(TARGET) -regex '[a-zA-Z]' | |
45 ./$(TARGET) -regex '[a-zA-Z]*' | |
46 ./$(TARGET) -regex 'a[a-zA-Z]*' | |
136 | 47 ./$(TARGET) -regex 'a([a-z])' |
48 ./$(TARGET) -regex 'a|[a-z]' | |
49 ./$(TARGET) -regex 'a|[a-z]*' | |
50 ./$(TARGET) -regex 'a*|[a-z]' | |
149
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
51 ./$(TARGET) -regex '[d-ga-c]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
52 ./$(TARGET) -regex '[d-ga-d]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
53 ./$(TARGET) -regex '[d-ga-e]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
54 ./$(TARGET) -regex '[d-ga-f]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
55 ./$(TARGET) -regex '[d-ga-h]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
56 ./$(TARGET) -regex '[d-gd-e]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
57 ./$(TARGET) -regex '[d-gd-f]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
58 ./$(TARGET) -regex '[d-gd-h]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
59 ./$(TARGET) -regex '[d-ge-f]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
60 ./$(TARGET) -regex '[d-ge-g]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
61 ./$(TARGET) -regex '[d-ge-i]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
62 ./$(TARGET) -regex '[d-gg-i]' |
f1880f25fabf
add insertCharClass images
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
63 ./$(TARGET) -regex '[d-gh-i]' |
151 | 64 ./$(TARGET) -regex '[d-ga-cx-z]' |
65 ./$(TARGET) -regex '[d-ga-de-d]' | |
66 ./$(TARGET) -regex '[d-ga-db-e]' | |
67 ./$(TARGET) -regex '[d-gh-ja-e]' |