Skip to content
Snippets Groups Projects
Commit 3b52d721 authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

Update slide describing makefile and cmake

parent 18ad9607
No related branches found
No related tags found
No related merge requests found
......@@ -274,10 +274,24 @@ prepend_path("INCLUDE","/ssoft/spack/arvine/v1/opt/spack/linux-rhel7-skylake_avx
\framesubtitle{Use a build system}
\begin{itemize}
\item Makefile
\begin{description}
\item Make is Unix utility that is designed to start execution of a makefile
\item The command line \cmd{make} executes shell commands containing in a makefile (list of rules)
\item Make keeps track of the last time files: only those files which are required (ones containing changes) were updated and only updates
\end{description}
\item Cmake
\end{itemize}
\begin{description}
\item CMake is a cross-platform family of tools designed to build, test and package software
\end{description}
\end{itemize}
\end{frame}
\note{
\begin{itemize}
\item If you have a large program with many source and/or header files, when you change a file on which others depend, you must recompile all the dependent files. Without a makefile, this is an extremely time-consuming task.
\item The makefile contains a list of rules. These rules tell the system what commands you want to be executed. Most times, these rules are commands to compile(or recompile) a series of files. The rules, which must begin in column 1, are in two parts. The first line is called a dependency line and the subsequent line(s) are called actions or commands. The action line(s) must be indented with a tab.
\item CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice
\end{itemize}
}
\begin{frame}[t,fragile]
\frametitle{Compilation}
\framesubtitle{Makefile example}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment