view c/regexParser/Makefile @ 116:66c633575b53 pairPro

remove error and warning
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 24 Nov 2015 17:07:08 +0900
parents 7809fb223dc9
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"