forked from TASC/HLRS-OpenMP-GPU-2024
20 lines
273 B
Makefile
20 lines
273 B
Makefile
BIN_DIR=../bin
|
|
PROGRAM=$(BIN_DIR)/mergesort-co
|
|
|
|
CC=g++
|
|
CFLAGS=-O3 -fopenmp
|
|
LDFLAGS=-fopenmp
|
|
|
|
all: $(PROGRAM)
|
|
|
|
$(PROGRAM): mergesort.cpp
|
|
$(CC) $(CFLAGS) $(VERBOSE) -o $@ $^ $(LDFLAGS)
|
|
|
|
$(BIN_DIR):
|
|
mkdir $@
|
|
|
|
clean:
|
|
rm -rf $(PROGRAM) *.o
|
|
|
|
wipe: clean
|
|
rm -rf *.out *.err
|