forked from TASC/HLRS-OpenMP-GPU-2024
22 lines
298 B
Makefile
22 lines
298 B
Makefile
|
BIN_DIR=../bin
|
||
|
PROGRAM=$(BIN_DIR)/sin-cos
|
||
|
|
||
|
CC=gcc
|
||
|
CFLAGS=-O3 -std=gnu99 -fopenmp
|
||
|
LDFLAGS=-lm -fopenmp
|
||
|
#VERBOSE=-DVERBOSE
|
||
|
|
||
|
all: $(PROGRAM)
|
||
|
|
||
|
$(PROGRAM): sin-cos.c
|
||
|
$(CC) $(CFLAGS) $(VERBOSE) -o $@ $^ $(LDFLAGS)
|
||
|
|
||
|
$(BIN_DIR):
|
||
|
mkdir $@
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(PROGRAM) *.o
|
||
|
|
||
|
wipe: clean
|
||
|
rm -rf *.out *.err
|