Update makefile#299
Conversation
| CP = $(TOOLCHAIN_PATH)/objcopy | ||
| SZ = $(TOOLCHAIN_PATH)/size -d -G | ||
| else | ||
| CC = gcc |
There was a problem hiding this comment.
Классно. А как свой компилятор задать?
There was a problem hiding this comment.
1 TOOLCHAIN_PATH же
2 перезалью
|
Just my opinion:
|
It works also with mingw-make. But I understood.
Where? I created in for C. Looks like chicane.
Yes. And I think this matters more than the style of the makefile code for a small project. Also, the version relevant for the project is not rebuilt when the headers are changed, this is what this implementation was made for. But it seems there is a simpler way. Perhaps I was then solving a number of other problems.
Understood. |
Mingw is literally port of GNU tools for Windows.
Line 34 defines macro with C++ compiler, CXX prefix from CXX_FILES usually used to refer to C++, LFLAGS even being commented defines options that are not relevant to the project.
It does rebuild on headers change. Current Makefile in Line 25 defines header files as dependency for object files, so makefile should rebuild everything when their modification time is newer than others. |

Более совершенный мейкфайл для прокта, который
Сам файл изначально писался для прошивок микроконтроллеров, но был адаптирован для консольных улит без зависимостей
Хотя я всё же счтаю что cmake был бы целесообразнее