Makefile generators
Posted: Mon Sep 28, 2020 7:21 pm
I'm on Windows, using Msys.
I tried different makefile generator, but only the Default works for me:
- CMake and NMakefile for visual are out of scope, I use neither one.
-GNU makefile one step build : Fail
C:\WINDOWS\system32\cmd.exe /C ""C:/msys64/mingw64/bin/mingw32-make.exe" -j8 -e -f Makefile"
- Codelite make generator: Fail
With (strange) Projecct.mk line 87-92
- mixed \ and / for paths in Makefile
- double "
- empty makefile rule
Are they some doc about generator?
Are there some configuration needed for those generators?
Are they restricted to other OS/compiler/...
I tried different makefile generator, but only the Default works for me:
- CMake and NMakefile for visual are out of scope, I use neither one.
-GNU makefile one step build : Fail
C:\WINDOWS\system32\cmd.exe /C ""C:/msys64/mingw64/bin/mingw32-make.exe" -j8 -e -f Makefile"
Code: Select all
----------Building project:[ MyProject - Release ]----------
mingw32-make[1]: *** No rule to make target 'Release/up_up_src_mylib.c.o', needed by 'Release/libmylib.dll'. Stop.
mingw32-make[1]: Entering directory 'C:/Code/MyProject/project/codelite'
mingw32-make[1]: Leaving directory 'C:/Code/MyProject/project/codelite'
mingw32-make: *** [Makefile:5: All] Error 2
====0 errors, 0 warnings====
Code: Select all
C:\WINDOWS\system32\cmd.exe /C ""C:/msys64/mingw64/bin/mingw32-make.exe" -j8 -e -f Makefile"
----------Building project:[ MyProject - Release ]----------
mingw32-make[1]: Entering directory 'C:/Code/MyProject/project/codelite'
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make[1]: *** [MyProject.mk:88: MakeIntermediateDirs] Error 1
mingw32-make[1]: *** Waiting for unfinished jobs....
<built-in>: fatal error: opening dependency file ./build-Release//up_up_src_mylib.c.o.d: No such file or directory
compilation terminated.
mingw32-make[1]: *** [MyProject.mk:103: build-Release//up_up_src_mylib.c.o.d] Error 1
mingw32-make[1]: Leaving directory 'C:/Code/MyProject/project/codelite'
mingw32-make: *** [Makefile:5: All] Error 2
====0 errors, 0 warnings====
Code: Select all
MakeIntermediateDirs:
@if not exist ".\build-$(ConfigurationName)\" mkdir ".\build-$(ConfigurationName)\"
@if not exist "".\build-$(ConfigurationName)\lib"" mkdir "".\build-$(ConfigurationName)\lib""
:
@if not exist ".\build-$(ConfigurationName)\" mkdir ".\build-$(ConfigurationName)\"
- double "
- empty makefile rule
Are they some doc about generator?
Are there some configuration needed for those generators?
Are they restricted to other OS/compiler/...