view c/regexParser/Makefile @ 88:7809fb223dc9

fix Makefile
author masa
date Fri, 23 Oct 2015 15:38:49 +0900
parents 52da06c3f050
children 66c633575b53
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"