]> git.seodisparate.com - blue_noise_generation/commitdiff
Init skeleton C++ project
authorStephen Seo <seo.disparate@gmail.com>
Sat, 16 Jan 2021 08:40:45 +0000 (17:40 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 16 Jan 2021 08:40:45 +0000 (17:40 +0900)
.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]
src/main.cpp [new file with mode: 0644]

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