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.
37 lines
775 B
37 lines
775 B
SHELL := /bin/bash
|
|
|
|
# ============================================
|
|
# COMMANDS
|
|
|
|
CC = gcc -std=gnu99 -fopenmp
|
|
RM = rm -f
|
|
CFLAGS_DEBUG=-O0 -ggdb3 -Wall -I.
|
|
CFLAGS=-O3 -Wall -I.
|
|
OBJ=openmp_gs_pagerank.o openmp_gs_pagerank_functions.o coo_sparse_matrix.o csr_sparse_matrix.o
|
|
DEPS=openmp_gs_pagerank_functions.h coo_sparse_matrix.h csr_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)
|
|
|