Mercurial > hg > Applications > Grep
changeset 265:1e2c12ec25b7
Makefile for Cerium
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 27 Jan 2016 18:00:25 +0900 |
parents | ef95a7f1bc03 |
children | e51cac73e42a |
files | regexParser/Makefile |
diffstat | 1 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/regexParser/Makefile Wed Jan 27 17:41:01 2016 +0900 +++ b/regexParser/Makefile Wed Jan 27 18:00:25 2016 +0900 @@ -1,9 +1,10 @@ TARGET= regexParser test/ccMerge -CFLAGS= -Wall -O0 -g +CFLAGS= -Wall -O0 -g -I$(CERIUM)/include/TaskManager -I. CC= clang++ +CERIUM= ../../Cerium SRCS_TMP = $(wildcard *.cc) -SRCS_EXCLUDE = sequentialSearch.cc state.cc +SRCS_EXCLUDE = sequentialSearch.cc state.cc parallelSearch.cc taskInit.cc searchTask.cc SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) @@ -18,16 +19,18 @@ $(CC) $(CFLAGS) -o $@ $(OBJS) test/searchBit: test/searchBit.cc - $(CC) $(CFLAGS) -I. $< bitVector.cc -o $@ + $(CC) $(CFLAGS) $< bitVector.cc -o $@ -test/ccMerge: test/ccMerge.cc - $(CC) $(CFLAGS) -I. $< subsetConstruction.cc regexParser.cc node.cc error.cc bitVector.cc -o $@ +test/ccMerge: test/ccMerge.o subsetConstruction.o regexParser.o node.o error.o bitVector.o + $(CC) $(CFLAGS) $< subsetConstruction.o regexParser.o node.o error.o bitVector.o -o $@ sequentialSearch: sequentialSearch.cc regexParser fileread.o ./regexParser -seq -subset -regex $(REGEX) - $(CC) $(CFLAGS) -I. -c sequentialSearch.cc - $(CC) $(CFLAGS) -I. sequentialSearch.o fileread.o -o $@ - + $(CC) $(CFLAGS) -c sequentialSearch.cc + $(CC) $(CFLAGS) sequentialSearch.o fileread.o -o $@ + +parallelSearch: parallelSearch.o taskInit.o searchTask.o + $(CC) $(CFLAGS) $< -L$(CERIUM)/TaskManager -lFifoManager `sdl-config --libs` gcov: make CFLAGS="-Wall -O0 -g -coverage"