Initial commit, setup project

This commit is contained in:
Antoine 2020-06-18 23:45:54 +02:00
commit ba4e894ff2
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
10 changed files with 2700 additions and 0 deletions

27
.editorconfig Normal file
View File

@ -0,0 +1,27 @@
# formatting rule for this project
root = true
[*]
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
[*.cpp]
max_line_length = 119
# Ignored paths
[lib/**]
indent_size = unset
indent_style = unset
end_of_line = unset
insert_final_newline = unset
charset = unset
trim_trailing_whitespace = unset
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
# Ignore everything in this directory
bin/*
doc/*
# Except this file
!.gitkeep
*.o
.vscode/
.idea/
*.iml

61
Makefile Normal file
View File

@ -0,0 +1,61 @@
# documentation here
# https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html
# http://www.partow.net/programming/makefile/index.html
CXX ?= g++
GCXX_DEBUG = -ggdb -DDEBUG -g
CFLAGS = -pedantic-errors -Wall -Wextra --std=c++14 $(GCXX_DEBUG) # -Werror
LDFLAGS = # $(shell pkg-config --libs libcrypto jsoncpp)
INCLUDE = -Iinclude/
# path #
BIN_DIR = ./bin
OBJ_DIR = ./obj
SRC_DIR = ./src
SRC_EXT = .cpp
TARGET = out.ex
# code lists #
# List all source files in the source directory
SRC := \
$(wildcard $(SRC_DIR)/module1/*$(SRC_EXT)) \
$(wildcard $(SRC_DIR)/*$(SRC_EXT)) \
# Set the object file names, with the source directory stripped
# from the path, and the build path prepended in its place
OBJECTS = $(SRC:$(SRC_DIR)/%.$(SRC_EXT)=$(OBJ_DIR)/%.o)
all: $(BIN_DIR)/$(TARGET)
$(OBJ_DIR)/%.o: %$(SRC_EXT)
$(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $@ $(LDFLAGS)
$(BIN_DIR)/$(TARGET): $(OBJECTS)
$(CXX) $(CFLAGS) -o $(BIN_DIR)/$(TARGET) $^ $(LDFLAGS)
all:
.PHONY: all debug release valgrind clean markdown doxygenconf
debug: CFLAGS += $(GCXX_DEBUG)
debug: all
release: CFLAGS += -O2
release: all
# debug target
valgrind:
@valgrind --leak-check=full --track-origins=yes $(BIN_DIR)/$(TARGET) file
clean:
@rm -f $(OBJ_DIR)/*.o
@rm -f $(BIN_DIR)/*.ex
markdown:
@pandoc --defaults=pandoc-config.yaml
doxygenconf:
@doxygen -g doxygen.conf
doc: doxygen.conf
@doxygen doxygen.conf

0
bin/.gitkeep Normal file
View File

0
doc/.gitkeep Normal file
View File

2553
doxygen.conf Normal file

File diff suppressed because it is too large Load Diff

0
obj/.gitkeep Normal file
View File

38
pandoc-config.yaml Normal file
View File

@ -0,0 +1,38 @@
from: markdown+emoji
to: html5
output-file: readme.html
standalone: true
self-contained: false
# leave blank for input from stdin, use [] for no input:
input-files:
- readme.md
metadata:
title: "<TITLE>"
subtitle: "<SUB TITLE>"
author: Antoine Roux <antoinroux@hotmail.fr>
date: <NOW>
abstract: "<TO COMPLETE>"
description: |
<TO COMPLETE>
<TO COMPLETE>
lang: en-GB
# ERROR, WARNING, or INFO
verbosity: INFO
# auto, preserve, or none
wrap: preserve
columns: 78
dpi: 72
table-of-contents: true
toc-depth: 2
shift-heading-level-by: 2
# lf, crlf, or native
eol: lf
ascii: true
highlight-style: tango
preserve-tabs: true
fail-if-warnings: true

3
readme.md Normal file
View File

@ -0,0 +1,3 @@
# <TITLE>
## <SUB TITLE>

7
src/main.cpp Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char const *argv[])
{
printf("c/c++ sample");
return 0;
}