INCLUDES= LIBS=-lboost_regex CXX=g++ CXXFLAGS=-O -W -Wall default_taget: all EXECUTABLES=restless countfreq all: ${EXECUTABLES} clean: rm -f ${EXECUTABLES} *.o %.o: %.cc ${CXX} ${CXXFLAGS} ${INCLUDES} -c $< %: %.o ${CXX} -o $@ $^ ${LIBS} restless.o: restless.hh code_or_text.hh code_or_text.o: restless.hh code_or_text.hh countfreq.o: restless: restless.o code_or_text.o countfreq: countfreq.o .PHONY: default_target all clean