Mercurial > hg > Members > masakoha > testcode
view c/regexParser/Makefile @ 118:31b0ba0050fa testcode
text
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Nov 2015 17:19:00 +0900 |
parents | 66c633575b53 |
children | 8ce93ffaf1ad |
line wrap: on
line source
TARGET= regexParser CFLAGS= -Wall -O0 -g CC= clang++ SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = determinize.cc SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) .SUFFIXES: .cc .o .cc.o: $(CC) $(CFLAGS) -c $< -o $@ all: $(TARGET) $(TARGET):$(OBJS) $(CC) -o $@ $(OBJS) link: $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) clean: rm -f $(TARGET) $(OBJS) rm -f *~ \#* test: ./$(TARGET) -regex "(ab)c" ./$(TARGET) -regex "(a|b)c" ./$(TARGET) -regex "(ab)*c"