forked from TASC/HLRS-OpenMP-GPU-2024
26 lines
339 B
Makefile
26 lines
339 B
Makefile
|
BIN_DIR=../bin
|
||
|
PROGRAM=$(BIN_DIR)/sudoku-tsk
|
||
|
|
||
|
CC=g++
|
||
|
CFLAGS=-c -O3 -fopenmp -DUSE_SEQUENTIAL_CUTOFF
|
||
|
LDFLAGS=-fopenmp
|
||
|
|
||
|
OBJS=SudokuBoard.o sudoku.o
|
||
|
|
||
|
all: $(PROGRAM)
|
||
|
|
||
|
$(PROGRAM): $(OBJS)
|
||
|
$(CC) -o $@ $^ $(LDFLAGS)
|
||
|
|
||
|
%.o: %.cpp
|
||
|
$(CC) $(CFLAGS) -o $@ $^
|
||
|
|
||
|
$(BIN_DIR):
|
||
|
mkdir $@
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(PROGRAM) *.o
|
||
|
|
||
|
wipe: clean
|
||
|
rm -rf *.out *.err
|