diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe5cc77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.o +*.out + +*.pdf + +*.tar diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d1f0586 --- /dev/null +++ b/Makefile @@ -0,0 +1,53 @@ +CXX = g++ +CXXFLAGS = --std=c++11 +RM = rm -r +TAR = tar -cf +CP = cp -r + +SRC_DIR = src +INC_DIR = includes +SOURCES = $(wildcard $(SRC_DIR)/*.cpp) +OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES))) + +EXE = projet +EXE_EXT = out + +PDF_LOCATION = report +PDF_FILE = explications.pdf + +ARCHIVE = binome38.tar +ARCHIVE_DIR = Botti-Kennel + +%.cpp.o: $(SRC_DIR)/%.cpp + $(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS) + +main: CXXFLAGS += -O3 +main: compilation + +dev: CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g +dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion +dev: compilation + +compilation: $(OBJETS) + $(CXX) -o $(EXE).$(EXE_EXT) $(OBJETS) + +all: + main + +pdf-make: + cd report && \ + $(MAKE) + +pdf-clean: + cd report && \ + $(MAKE) clean + +clean: pdf-clean + -$(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)" + +archive: pdf-make + @mkdir $(ARCHIVE_DIR) + $(CP) "$(SRC_DIR)/" "$(INC_DIR)/" Makefile README.md "$(PDF_LOCATION)/$(PDF_FILE)" \ + $(ARCHIVE_DIR) + $(TAR) "$(ARCHIVE)" $(ARCHIVE_DIR) + $(RM) "$(ARCHIVE_DIR)" diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/report/.gitignore b/report/.gitignore new file mode 100644 index 0000000..b162c46 --- /dev/null +++ b/report/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!Makefile +!*.tex diff --git a/report/Makefile b/report/Makefile new file mode 100644 index 0000000..d7ca06a --- /dev/null +++ b/report/Makefile @@ -0,0 +1,16 @@ +NAME = explications + +TEX = $(NAME).tex +SRC = $(TEX) +PDF = $(TEX:.tex=.pdf) + +TEXMK = latexmk -shell-escape -lualatex + +all: $(PDF) + +$(PDF): %.pdf: %.tex + $(TEXMK) $< + +EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc +clean: + rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) diff --git a/report/explications.tex b/report/explications.tex new file mode 100644 index 0000000..ec3e329 --- /dev/null +++ b/report/explications.tex @@ -0,0 +1,39 @@ +\documentclass{article} + +\usepackage[T1]{fontenc} % encoding +\renewcommand{\familydefault}{\sfdefault} % sans-serif font + +\usepackage[french]{babel} % langages +\frenchsetup{SmallCapsFigTabCaptions=false} + +\usepackage[hidelinks]{hyperref} % clickable links in table of contents + +\usepackage{graphicx} % images + +\newcommand{\emma}{Emma Botti} +\newcommand{\anri}{Anri Kennel} + +\title{Projet} +\author{\emma\thanks{\emma : 71701040} et \anri\thanks{\anri : 22302653} \\ + Langages à objet avancés $\cdot$ Université Paris Cité} +\date{Année universitaire 2023-2024} + +\begin{document} +\maketitle +\tableofcontents +\clearpage + +\section{Explications} +TODO + +\section{Diagramme UML} + +\begin{figure}[h] + \centering + % \includegraphics[width=1.3\textwidth]{assets/diagramme_uml.png} + \caption{Diagramme UML} +\end{figure} + + + +\end{document}