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
375 B

TARGET=KnnMPINonBlockingSpaceOptimized
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 *~