Mercurial > hg > Applications > Grep
diff regexParser/Makefile @ 272:5aa9d01926f1
Cerium version no compile errors
author | kono |
---|---|
date | Fri, 29 Jan 2016 20:38:18 +0900 |
parents | 6640b0d5bf13 |
children | bc704a31e842 |
line wrap: on
line diff
--- a/regexParser/Makefile Fri Jan 29 19:37:11 2016 +0900 +++ b/regexParser/Makefile Fri Jan 29 20:38:18 2016 +0900 @@ -2,6 +2,7 @@ CFLAGS= -Wall -O0 -g -I$(CERIUM)/include/TaskManager -I. CC= clang++ CERIUM= ../../Cerium +AR= libCeriumGrep.a SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = sequentialSearch.cc state.cc parallelSearch.cc taskInit.cc searchTask.cc @@ -30,8 +31,11 @@ $(CC) $(CFLAGS) sequentialSearch.o fileread.o -o $@ ./$@ -file sequentialSearch.cc -parallelSearch: parallelSearch.o taskInit.o searchTask.o - $(CC) $(CFLAGS) $< -L$(CERIUM)/TaskManager -lFifoManager `sdl-config --libs` +parallelSearch: $(AR) + cd cerium ; $(MAKE) -f Makefile.macosx CERIUM=../$(CERIUM) + +$(AR): $(OBJS) + ar crus $@ $(OBJS) gcov: make CFLAGS="-Wall -O0 -g -coverage" @@ -40,14 +44,15 @@ gcov *.gcda clean: - rm -f $(TARGET) $(OBJS) - rm -f *~ \#* *.gcda *.gcno *.gcov state.cc + rm -f $(TARGET) $(OBJS) $(AR) + rm -rf *~ \#* *.gcda *.gcno *.gcov state.cc sequentialSearch *.dSYM + cd cerium; make clean touch state.cc .SUFFIXES: .cc .o tSearch: regexParser - ./regexParser -seq -subset -regex '[A-Z][A-Za-z0-9_]*' -file main.cc -ts + ./regexParser -seq -subset -regex '[A-Z][A-Za-z0-9_]*' -file sequentialSearch.cc -ts test1: regexParser ./regexParser -regex 'a'