blue_noise_generation/Makefile
2021-01-16 18:54:56 +09:00

23 lines
356 B
Makefile

COMMON_FLAGS=-Wall -Wextra -Wpedantic -std=c++17
ifdef DEBUG
CPPFLAGS=${COMMON_FLAGS} -g -O0
else
CPPFLAGS=${COMMON_FLAGS} -O3 -DNDEBUG
endif
SOURCES= \
src/main.cpp \
src/blue_noise.cpp
OBJECTS=${subst .cpp,.o,${SOURCES}}
all: Dithering
Dithering: ${OBJECTS}
${CXX} ${CPPFLAGS} -o Dithering $^
.PHONY:
clean:
rm -f Dithering
rm -f ${OBJECTS}