User forums > Using Code::Blocks
Help Using Makefiles
laserbeak43:
Hello,
Just installed the April 09 Nightly-Build and the latest release of MinGW and installed the GCC compiler and MinGW Make. I have a Linux project I'm participating in that uses a lot of makefiles. My job is to port this project to Windows, and a developer suggests that i use the makefiles to get everything to compile.
My question is, how do i go about doing such a thing in C::B?
I'm pretty lost on this one.
looked on the MinGW site and searched here, but didn't see much info about using makefiles. only stuff to help generate your own.
stahta01:
Search on "Custom Makefile".
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_My_project_should_be_compiled_with_a_custom_makefile._Is_it_possible_with_Code::Blocks.3F
Tim S
laserbeak43:
i've selected it and pointed to the makefile, but it didn't do anything. are you sure that's all i need to do?
stahta01:
No you also need a Makefile and it needs the tasks to be named as Code::Blocks wants them to be named.
Or you can make Code::Blocks match the makefile.
What are the tasks in your makefile?
all, clean are common tasks names.
Is the makefile in the same folder as the project file?
Turn on Compiler logging to get info to help debug.
Tim S
laserbeak43:
Ok, went to Settings>Compiler and Debugger>Debugger Options>Display Debugger's Log.
Also, do i run a makefile simply by doing a build and run? or do i have to do something else.
Oh yeah,
[source directory]
+[my project directory]
+[source code i'm working with]
+[folder with my Makefile]
--- Quote ----------------- Build: Debug in JMax-Phoenix-windows ---------------
Using makefile: Makefile
mingw32-make.exe: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End quote ---
the debugger tab shows nothing
Navigation
[0] Message Index
[#] Next page
Go to full version