annotate c/regexParser/Makefile @ 135:e1a262ec75f0 pairPro

impl charclass
author masa
date Fri, 04 Dec 2015 19:07:10 +0900
parents dbafc753078e
children 15815fcb6c2f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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)
129
b930be74a16e remove word.h
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
6 SRCS_EXCLUDE = determinize.cc subsetConstraction.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
89a198fa6b23 add dfrTobin
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
89a198fa6b23 add dfrTobin
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
89a198fa6b23 add dfrTobin
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
89a198fa6b23 add dfrTobin
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
28 ./$(TARGET) -regex 'a'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
29 ./$(TARGET) -regex 'ab'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
30 ./$(TARGET) -regex 'ab*'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
31 ./$(TARGET) -regex '(ab)*'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
32 ./$(TARGET) -regex '(ab)*c'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
33 ./$(TARGET) -regex '(ab)c'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
34 ./$(TARGET) -regex '(a|b)c'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
35 ./$(TARGET) -regex 'a(bc)*d'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
36 ./$(TARGET) -regex 'abc*d'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
37 ./$(TARGET) -regex '(ab)c*d'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
38 ./$(TARGET) -regex 'a(b)c'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
39 ./$(TARGET) -regex '(a|b|c)d'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
40 ./$(TARGET) -regex '(a|b|c)*d'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
41 ./$(TARGET) -regex '[a]'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
42 ./$(TARGET) -regex '[ab]'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
43 ./$(TARGET) -regex '[a-z]'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
44 ./$(TARGET) -regex '[a-zA-Z]'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
45 ./$(TARGET) -regex '[a-zA-Z]*'
e1a262ec75f0 impl charclass
masa
parents: 134
diff changeset
46 ./$(TARGET) -regex 'a[a-zA-Z]*'