Initial commit, setup project
This commit is contained in:
commit
ba4e894ff2
27
.editorconfig
Normal file
27
.editorconfig
Normal 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
11
.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Ignore everything in this directory
|
||||||
|
bin/*
|
||||||
|
doc/*
|
||||||
|
# Except this file
|
||||||
|
!.gitkeep
|
||||||
|
|
||||||
|
*.o
|
||||||
|
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
*.iml
|
61
Makefile
Normal file
61
Makefile
Normal 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
0
bin/.gitkeep
Normal file
0
doc/.gitkeep
Normal file
0
doc/.gitkeep
Normal file
2553
doxygen.conf
Normal file
2553
doxygen.conf
Normal file
File diff suppressed because it is too large
Load Diff
0
obj/.gitkeep
Normal file
0
obj/.gitkeep
Normal file
38
pandoc-config.yaml
Normal file
38
pandoc-config.yaml
Normal 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
|
7
src/main.cpp
Normal file
7
src/main.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(int argc, char const *argv[])
|
||||||
|
{
|
||||||
|
printf("c/c++ sample");
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user