Exercise 3 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.

36 lines
686 B

7 years ago
SHELL := /bin/bash
# ============================================
# COMMANDS
CC = /usr/local/cuda/bin/nvcc
7 years ago
RM = rm -f
CFLAGS= -arch=sm_21 -lm -O0 -I.
OBJ=meanshift.o meanshift_utils.o meanshift_kernels.o
DEPS=meanshift_utils.h meanshift_kernels.h
7 years ago
# ==========================================
# TARGETS
EXECUTABLES = meanshift
7 years ago
.PHONY: all clean
7 years ago
all: $(EXECUTABLES)
# ==========================================
# DEPENDENCIES (HEADERS)
%.o: %.cu $(DEPS)
$(CC) -x cu $(CFLAGS) -dc $< -o $@
.PRECIOUS: $(EXECUTABLES) $(OBJ)
# ==========================================
# EXECUTABLE (MAIN)
$(EXECUTABLES): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $@
7 years ago
clean:
$(RM) *.o *~ $(EXECUTABLES)