RES: [Dev-C++] Convert Makefile to Dev-C++ project
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2003-03-21 16:07:43
|
If you want to do it with minimum effort, you can try Cygwin - almost an entire OS, so you'll probably just need to type './configure' and 'make'. Even with MSYS you can compile most of them like this. I compiled many GNU programs under Windows with Dev-Cpp, the task is simple: 1- Create a project 2- Add the files 3- Look at the Makefile for the * CFLAGS/CCFLAGS/CwhateverFLAGS/every-compiler-switch and add them to Compiler Options * LDFLAGS/LIBS/whatever-that-seems-like-linker-options and add them to Linker Options 4- If the sources need a config.h file, and you can't run the ./configure script, look for a "acconfig.h" (or any "*config.h") that came with the sources (or you can search on Google for one) and edit the #define's properly. Rename it to "config.h" and include it in your project. I don't think I would ever need a tool to convert it to a dev's project file; I just need 1- some clicks (create a project) 2- some more clicks (Add File -> Ctrl+A -> Open) 3- copy/paste from Makefile to Dev 4- a few key-hits (F2, "acconfig.h" -> "config.h", Add file..., edit it a little) Daniel K. O. It's OK to be ignorant; it's not OK to play stupid. http://www.catb.org/~esr/faqs/smart-questions.html > -----Mensagem original----- > De: dev...@li... > [mailto:dev...@li...]Em nome de Louis Godio > Enviada em: sexta-feira, 21 de março de 2003 12:07 > Para: gi...@li...; dev...@li... > Assunto: Re: [Dev-C++] Convert Makefile to Dev-C++ project > > > Hi list, > This is an important topic for those of us that want to > port GNU source code to DevC++. > > GNU source code is made to compile under gcc compilers. > And all GNU source uses makefiles. But I for one spend enormous > amounts of > time trying to get GNU code to compile under DevCpp. And the problem is > almost always the GNU makefile. > > If you try to ignore the GNU makefile and load the source files into > a DevC++ progect, then compile, you get tons of compile and link errors. > For example, try to compile the GNU UNSHAR code (which is a simple code > with a complex makefile). > > The person asking this question, and I'm sure many other DevC++ users, > need a practical tool or solution to this makefile problem. > I'm also sure that any help, advice etc. would be greatly appreciated by > these users. |