diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaaed74 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/*.o +Dithering + +compile_commands.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c02c895 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + +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} diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..11b7fad --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,3 @@ +int main(int argc, char **argv) { + return 0; +}