Exercise 4 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.
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
|
|
# ============================================
|
|
|
|
# COMMANDS
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
RM = rm -f
|
|
|
|
CFLAGS_DEBUG=-O0 -g -I.
|
|
|
|
CFLAGS=-O3 -I.
|
|
|
|
OBJ=serial_gs_pagerank.o serial_gs_pagerank_functions.o sparse_matrix.o
|
|
|
|
DEPS=serial_gs_pagerank_functions.h sparse_matrix.h
|
|
|
|
|
|
|
|
# ==========================================
|
|
|
|
# TARGETS
|
|
|
|
|
|
|
|
EXECUTABLES = pagerank.out
|
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
all: $(EXECUTABLES)
|
|
|
|
|
|
|
|
# ==========================================
|
|
|
|
# DEPENDENCIES (HEADERS)
|
|
|
|
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
.PRECIOUS: $(EXECUTABLES) $(OBJ)
|
|
|
|
|
|
|
|
# ==========================================
|
|
|
|
# EXECUTABLE (MAIN)
|
|
|
|
|
|
|
|
$(EXECUTABLES): $(OBJ)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.o *~ $(EXECUTABLES)
|