Mercurial > hg > Applications > Grep
view c/regexParser/Makefile @ 161:584f32e18398 testcode
close
author | masa |
---|---|
date | Fri, 18 Dec 2015 19:17:02 +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"