blue_noise_generation/Makefile

22 lines
319 B
Makefile
Raw Normal View History

2021-01-16 08:40:45 +00:00
COMMON_FLAGS=-Wall -Wextra -Wpedantic
ifdef DEBUG
CPPFLAGS=${COMMON_FLAGS} -g -O0
else
CPPFLAGS=${COMMON_FLAGS} -O3 -DNDEBUG
endif
SOURCES=src/main.cpp
OBJECTS=${subst .cpp,.o,${SOURCES}}
all: Dithering
Dithering: ${OBJECTS}
${CXX} ${CPPFLAGS} -o Dithering $^
.PHONY:
clean:
rm -f Dithering
rm -f ${OBJECTS}