CCFLAGS=-Wall -std=gnu++0x -g EXES=00-functiontemplate 01-functiontemplate-infer 02-seqcont-1 03-seqcont-2 04-seqcont-3 05-seqcont-4 06-seqcont-5 07-seqcont-6 08-seqcont-7 09-seqcont-8 10-empty 11-seqcont-algo 12-maps 13-exceptions 14-exceptionsreordered SRCS=$(shell ls *.cc) all: ${EXES} 00-functiontemplate: 00-functiontemplate.cc g++ ${CCFLAGS} -o 00-functiontemplate 00-functiontemplate.cc 01-functiontemplate-infer: 01-functiontemplate_infer.cc g++ ${CCFLAGS} -o 01-functiontemplate-infer 01-functiontemplate_infer.cc 02-seqcont-1: 02-seqCont-1.cc g++ ${CCFLAGS} -o 02-seqcont-1 02-seqCont-1.cc 03-seqcont-2: 03-seqCont-2.cc g++ ${CCFLAGS} -o 03-seqcont-2 03-seqCont-2.cc 04-seqcont-3: 04-seqCont-3.cc g++ ${CCFLAGS} -o 04-seqcont-3 04-seqCont-3.cc 05-seqcont-4: 05-seqCont-4.cc g++ ${CCFLAGS} -o 05-seqcont-4 05-seqCont-4.cc 06-seqcont-5: 06-seqCont-5.cc g++ ${CCFLAGS} -o 06-seqcont-5 06-seqCont-5.cc 07-seqcont-6: 07-seqCont-6.cc g++ ${CCFLAGS} -o 07-seqcont-6 07-seqCont-6.cc 08-seqcont-7: 08-seqCont-7.cc g++ ${CCFLAGS} -o 08-seqcont-7 08-seqCont-7.cc 09-seqcont-8: 09-seqCont-8.cc g++ ${CCFLAGS} -o 09-seqcont-8 09-seqCont-8.cc 10-empty: 10-empty.cc g++ ${CCFLAGS} -o 10-empty 10-empty.cc 11-seqcont-algo: 11-seqContAlgo.cc g++ ${CCFLAGS} -o 11-seqcont-algo 11-seqContAlgo.cc 12-maps: 12-maps.cc g++ ${CCFLAGS} -o 12-maps 12-maps.cc 13-exceptions: 13-exceptions.cc g++ ${CCFLAGS} -o 13-exceptions 13-exceptions.cc 14-exceptionsreordered: 14-exceptionsReordered.cc g++ ${CCFLAGS} -o 14-exceptionsreordered 14-exceptionsReordered.cc run: echo --- seqcont-1: ./02-seqcont-1 echo --- seqcont-2: ./03-seqcont-2 echo --- seqcont-3: ./04-seqcont-3 echo --- seqcont-4: ./05-seqcont-4 echo --- seqcont-5: ./06-seqcont-5 echo --- seqcont-6: ./07-seqcont-6 echo --- seqcont-7: ./08-seqcont-7 echo --- seqcont-8: ./09-seqcont-8 pdf: echo ${SRCS} enscript -E -r -C -o outfile.ps ${SRCS} ps2pdf outfile.ps clean: rm -f *.o *~ ${EXES} outfile.ps outfile.pdf