TARGET=KnnMPINonBlockingTimeOptimized CC=mpicc CFLAGS=-Wall -O3 -std=gnu99 -I. OBJ=knnMPINonBlocking.o knnMPINonBlockingDeclarations.o DEPS=knnMPINonBlockingDeclarations.h .PHONY: default all clean default: $(TARGET) all: default %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) .PRECIOUS: $(TARGET) $(OBJ) $(TARGET): $(OBJ) $(CC) -o $@ $^ $(CFLAGS) clean: $(RM) *.o *~