2021-01-16 08:40:45 +00:00
|
|
|
|
2021-01-23 07:42:45 +00:00
|
|
|
COMMON_FLAGS=-Wall -Wextra -Wpedantic -std=c++17
|
|
|
|
LINKER_FLAGS=-lpthread -lOpenCL
|
2021-01-16 08:40:45 +00:00
|
|
|
ifdef DEBUG
|
|
|
|
CPPFLAGS=${COMMON_FLAGS} -g -O0
|
|
|
|
else
|
|
|
|
CPPFLAGS=${COMMON_FLAGS} -O3 -DNDEBUG
|
|
|
|
endif
|
|
|
|
|
2021-01-16 09:54:56 +00:00
|
|
|
SOURCES= \
|
|
|
|
src/main.cpp \
|
|
|
|
src/blue_noise.cpp
|
2021-01-16 08:40:45 +00:00
|
|
|
OBJECTS=${subst .cpp,.o,${SOURCES}}
|
|
|
|
|
|
|
|
all: Dithering
|
|
|
|
|
|
|
|
Dithering: ${OBJECTS}
|
2021-01-23 07:42:45 +00:00
|
|
|
${CXX} ${CPPFLAGS} ${LINKER_FLAGS} -o Dithering $^
|
2021-01-16 08:40:45 +00:00
|
|
|
|
|
|
|
.PHONY:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f Dithering
|
|
|
|
rm -f ${OBJECTS}
|