From 42ef4e9bb3e4e279423c70cec8d68f37bab3d230 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sat, 1 May 2021 21:29:05 +0900 Subject: [PATCH] Init skeleton project commit --- cpp_impl/.gitignore | 3 +++ cpp_impl/Makefile | 18 ++++++++++++++++++ cpp_impl/src/main.cpp | 3 +++ link | 1 + 4 files changed, 25 insertions(+) create mode 100644 cpp_impl/.gitignore create mode 100644 cpp_impl/Makefile create mode 100644 cpp_impl/src/main.cpp create mode 100644 link diff --git a/cpp_impl/.gitignore b/cpp_impl/.gitignore new file mode 100644 index 0000000..8c30434 --- /dev/null +++ b/cpp_impl/.gitignore @@ -0,0 +1,3 @@ +GeothmeticMeandian +src/*.o +compile_commands.json diff --git a/cpp_impl/Makefile b/cpp_impl/Makefile new file mode 100644 index 0000000..6356389 --- /dev/null +++ b/cpp_impl/Makefile @@ -0,0 +1,18 @@ +COMMON_FLAGS = -Wall -Wextra -Wpedantic + +ifdef DEBUG + CXXFLAGS = $(COMMON_FLAGS) -g -O0 +else + CXXFLAGS = $(COMMON_FLAGS) -O3 -DNDEBUG +endif + +all: GeothmeticMeandian + +GeothmeticMeandian: src/main.o + $(CXX) $(CXXFLAGS) -o GeothmeticMeandian $^ + +.PHONY: + +clean: + rm -f GeothmeticMeandian + rm -f src/*.o diff --git a/cpp_impl/src/main.cpp b/cpp_impl/src/main.cpp new file mode 100644 index 0000000..11b7fad --- /dev/null +++ b/cpp_impl/src/main.cpp @@ -0,0 +1,3 @@ +int main(int argc, char **argv) { + return 0; +} diff --git a/link b/link new file mode 100644 index 0000000..eba8428 --- /dev/null +++ b/link @@ -0,0 +1 @@ +https://programmingpraxis.com/2021/04/13/geothmetic-meandian/