Browse Source

Initial commit, setup project

master
Antoine 1 year ago
commit
ba4e894ff2
Signed by: antoine <antoinroux@hotmail.fr> GPG Key ID: 098FB66FC0475E70
10 changed files with 2700 additions and 0 deletions
  1. +27
    -0
      .editorconfig
  2. +11
    -0
      .gitignore
  3. +61
    -0
      Makefile
  4. +0
    -0
      bin/.gitkeep
  5. +0
    -0
      doc/.gitkeep
  6. +2553
    -0
      doxygen.conf
  7. +0
    -0
      obj/.gitkeep
  8. +38
    -0
      pandoc-config.yaml
  9. +3
    -0
      readme.md
  10. +7
    -0
      src/main.cpp

+ 27
- 0
.editorconfig 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
- 0
.gitignore View File

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

*.o

.vscode/
.idea/
*.iml

+ 61
- 0
Makefile 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
- 0
bin/.gitkeep View File


+ 0
- 0
doc/.gitkeep View File


+ 2553
- 0
doxygen.conf
File diff suppressed because it is too large
View File


+ 0
- 0
obj/.gitkeep View File


+ 38
- 0
pandoc-config.yaml 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
- 0
readme.md View File

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

## <SUB TITLE>

+ 7
- 0
src/main.cpp View File

@@ -0,0 +1,7 @@
#include <stdio.h>

int main(int argc, char const *argv[])
{
printf("c/c++ sample");
return 0;
}

Loading…
Cancel
Save