aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-10-24 18:38:10 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-10-24 18:38:10 +0100
commitef40b73392888b1bac5ab06ba3130290c3e89956 (patch)
treeaf71e04ff4d36640f8ea675b2eaf0868232cbf1e
downloadSimplex-ef40b73392888b1bac5ab06ba3130290c3e89956.tar.gz
Simplex-ef40b73392888b1bac5ab06ba3130290c3e89956.zip
Adding initial files
-rw-r--r--.depend1
-rw-r--r--.dir-locals.el8
-rw-r--r--.gitignore3
-rw-r--r--include/simplex.h0
-rw-r--r--makefile26
-rw-r--r--src/simplex.cpp6
6 files changed, 44 insertions, 0 deletions
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
--- /dev/null
+++ b/include/simplex.h
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 <simplex.h>
+
+int main()
+{
+
+}