Mercurial > hg > Applications > Grep
view c/regexParser/Makefile @ 85:5072a44ed842
add Word
author | masa |
---|---|
date | Thu, 08 Oct 2015 20:07:32 +0900 |
parents | 52da06c3f050 |
children | 7809fb223dc9 |
line wrap: on
line source
TARGET= regexParser CFLAGS= -Wall -O0 -g CC= clang++ SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = # 除外するファイルを書く 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"