Commit Graph

5 Commits

Author SHA1 Message Date
Mathieu Maret
3fcfdb6720 Makefile: C++ compilation 2017-06-12 14:56:49 +02:00
Mathieu Maret
3f6fd7ddb0 Makefile: Add exemple for including external lib 2017-06-12 14:34:04 +02:00
Mathieu Maret
b0541348aa Makefile: simplification and improvment
Default target is the main program.
Use implicit rule for main program.
Generate .d file at compilation time instead of using specific rules
Fix CFLAGS CPPFLAGS usage
2017-06-12 14:29:01 +02:00
5f29edd6cc Correct Makefile flags
Implicit C compilation use CPPFLAGS (https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html)
The real flag for error checking is Werror
2016-10-11 23:54:51 +02:00
Mathieu Maret
d212b6089d Add Makefile example
This makefile check file dependecies (.h)
Idea from
5c644cfd35/Makefile
2016-10-05 16:03:11 +02:00