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 *~