August 28th, 2003, 11:04 AM
Win32 equivilent to "build"?
Hey, I'm looking at a few apps done for linux etc., and they say "go to the directory and execute build". Now 'build' is the makefile, I understand that, but how do I execute that make file through like MS DOS Prompt?
I'm using Borland C++ 5.02, and the only thing I can find is "make", but make can't "find" the build file. :rolleyes:
Any ideas how to execute build? Or any other compilers I should try (other than VC++ as that's sort of expensive, for what I'm doing.).
Thanks for your help!
August 28th, 2003, 11:23 AM
Oh, and I just installed Dev-C++, if that has a make file builder. thanks!
August 28th, 2003, 12:04 PM
Never mind, unless somebody knows how, I'm just downloading Linux :p
August 28th, 2003, 02:30 PM
I hope that you are going to load Linux on another machine. Talk about starting over from scratch. Well, if nothing else, welcome to Linux! I'm straddling both worlds myself.
OK, to answer your basic question:
Yes, you are going to do a make. The name of the make utility is usually "make", though the Microsoft version is usually "nmake". I'm not sure whether Borland had given it a different name or not.
Normal UNIX procedure is to name the make file "Makefile" (capitalization is important, especially in UNIX/Linux). Then just type the command:
and it will use the file Makefile.
Or you can name the makefile something different, like myproj.mak, in which case you need to tell make what that name is through the -f option:
make -f myproj.mak
In addition, if the makefile has more than one target, then you can name the target at the command line. For example, many Linux makefiles have an install target that will create the other target files, copy them to the directories specified in the makefile, and do whatever other setup is needed -- kind of like the old INSTALL.BAT files in DOS, only much more powerful. For that target in the myproj.mak file, you would enter the command:
make -f myproj.mak install
Hope that helps you get started.
August 28th, 2003, 05:52 PM
If you use the project facility in Dev-C++ it generates a makefile called makefile.win.
You need not run it from the command line since you can do it from the IDE, but if you need to:
Although I fail to understand why you are asking the question before you have even tried the software. Dev-C++ is an IDE that uses the MinGW implementation of the gcc compiler (the same compiler you'd use on Linux). All the same command line tools that you'd expect in the Linux compiler toolchain are provided.
You can get specifc help on Dev-C++ at https://sourceforge.net/forum/forum.php?forum_id=48211
August 30th, 2003, 09:40 AM
Well I tried it, but couldn't find my way around that well because I'm used to borland's IDE. Sorry, and thanks for your responses, that's all I need. :)
August 30th, 2003, 10:04 AM
Argh, it doesn't like me..
The make files don't work at all, they're all incompatible, but I'm trying to use the project mode in Dev-CPP, and it's not working too great.
Now how on earth do I make that into a dev (project) file in Dev-CPP?!
Thanks for your help.
August 30th, 2003, 04:29 PM
Anybody? This is really starting to piss me off... what should the project list include and what kind of flags should be called?
August 31st, 2003, 01:32 AM
Your problem seems to be that that is not a makefile at all - it's a Bash shell script.
It'd probably be easier for you to just change that into a DOS batch file. Just make a .bat file and do the subsitutions yourself.
Of course, you'll need to have flex and bison as well as the Mephis compiler tools.
August 31st, 2003, 09:21 AM
Thanks, I'll do that from now on. :)