From ef40b73392888b1bac5ab06ba3130290c3e89956 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 24 Oct 2017 18:38:10 +0100 Subject: Adding initial files --- .depend | 1 + .dir-locals.el | 8 ++++++++ .gitignore | 3 +++ include/simplex.h | 0 makefile | 26 ++++++++++++++++++++++++++ src/simplex.cpp | 6 ++++++ 6 files changed, 44 insertions(+) create mode 100644 .depend create mode 100644 .dir-locals.el create mode 100644 .gitignore create mode 100644 include/simplex.h create mode 100644 makefile create mode 100644 src/simplex.cpp diff --git a/.depend b/.depend new file mode 100644 index 0000000..ffd8dca --- /dev/null +++ b/.depend @@ -0,0 +1 @@ +simplex.o: src/simplex.cpp include/simplexclass.h diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..ec813af --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,8 @@ +((nil . ((eval . (progn + (require 'projectile) + (setq company-clang-arguments (delete-dups (append + company-clang-arguments + (list (concat "-I" (projectile-project-root) "include"))))) + (setq flycheck-clang-include-path (delete-dups (append + flycheck-clang-include-path + (list (concat (projectile-project-root) "include")))))))))) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd63c4d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build +*.o +.gitignore diff --git a/include/simplex.h b/include/simplex.h new file mode 100644 index 0000000..e69de29 diff --git a/makefile b/makefile new file mode 100644 index 0000000..fb5c24d --- /dev/null +++ b/makefile @@ -0,0 +1,26 @@ +CXX = g++ +CXX_FLAGS = -Wfatal-errors -Wall -Wextra -Wpedantic -Wconversion -Wshadow -Iinclude + +BIN = simplex +BUILD_DIR = ./build + +CPP = $(wildcard src/*.cpp) + +OBJ = $(CPP:%.cpp=$(BUILD_DIR)/%.o) +DEP = $(OBJ:%.o=%.d) + +$(BIN) : $(BUILD_DIR)/$(BIN) + +$(BUILD_DIR)/$(BIN) : $(OBJ) + mkdir -p $(@D) + $(CXX) $(CXX_FLAGS) $^ -o $@ + +-include $(DEP) + +$(BUILD_DIR)/%.o : %.cpp + mkdir -p $(@D) + $(CXX) $(CXX_FLAGS) -MMD -c $< -o $@ + +.PHONY : clean +clean : + -rm $(BUILD_DIR)/$(BIN) $(OBJ) $(DEP) diff --git a/src/simplex.cpp b/src/simplex.cpp new file mode 100644 index 0000000..9039a3a --- /dev/null +++ b/src/simplex.cpp @@ -0,0 +1,6 @@ +#include + +int main() +{ + +} -- cgit