Make conventions: Difference between revisions
From wikinotes
(Created page with "= C/C++ = <blockquote> == Compiler == <blockquote> The makefile itself is quite flexible with how you use it, but there appears to be a set of agreed-upon variables names for...") |
No edit summary |
||
Line 1: | Line 1: | ||
= Compiled Languages = | |||
<blockquote> | |||
== Targets == | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
build # build executable | |||
install # install executable | |||
clean # remove temporary/incremental build files | |||
</syntaxhighlight> | |||
</blockquote><!-- Targets --> | |||
</blockquote><!-- Compiled Languages --> | |||
= C/C++ = | = C/C++ = | ||
<blockquote> | <blockquote> |
Latest revision as of 13:01, 6 September 2021
Compiled Languages
Targets
build # build executable install # install executable clean # remove temporary/incremental build files
C/C++
Compiler
The makefile itself is quite flexible with how you use it, but there appears to be a set of agreed-upon variables names for compiler related variables.
PROG= ## name of output executable OBJS= ## name of all *.o files to be included (?) CC= ## compiler name DEBUG= ## compiler flags for debug-mode (allow use of gdb) CFLAGS= ## compiler flags for *.o object-file compilation LFLAGS= ## compiler flags to determine libraries (?)