Exercise 2 for the course "Parallel and distributed systems" of THMMY in AUTH university.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
363 B

TARGET=KnnMPIBlockingSpaceOptimized
CC=mpicc
CFLAGS=-Wall -O3 -std=gnu99 -I.
OBJ=knnMPIBlocking.o knnMPIBlockingDeclarations.o
DEPS=knnMPIBlockingDeclarations.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 *~