CC=gcc target1=namedpipes target2=sharedmem CFLAGS=-ansi -Wall -pedantic all: ${target1} ${target2} ${target1}: semaphores.o ${target1}.c ${CC} -o ${target1} ${target1}.c semaphores.o ${CFLAGS} ${target2}: semaphores.o ${target2}.c ${CC} -o ${target2} ${target2}.c semaphores.o ${CFLAGS} clean: -rm -f *.o ${target1} ${target2} *~