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

6 years ago
TARGET=KnnSerialSpaceOptimized
CC=gcc
CFLAGS=-Wall -O3 -std=gnu99 -I.
OBJ=knnSerial.o knnSerialDeclarations.o
DEPS=knnSerialDeclarations.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 *~