Where can I find MAKE utility for Dos?

Programming, for all ages and all languages.
Post Reply
Red Shaya

Where can I find MAKE utility for Dos?

Post by Red Shaya »

Any Make will do, GNU, BORLAND etc'.
The problem is that I can't find any.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where can I find MAKE utility for Dos?

Post by Solar »

Every good solution is obvious once you've found it.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:Where can I find MAKE utility for Dos?

Post by Neo »

http://www.cygwin.com
A nicer developer environment itself. ;)
Only Human
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where can I find MAKE utility for Dos?

Post by Solar »

But Cygwin is *Win*, not *DOS*... ;)
Every good solution is obvious once you've found it.
Red Shaya

Re:Where can I find MAKE utility for Dos?

Post by Red Shaya »

Thanks

Previously I had problems connecting to the FTP.
It took me this try to discover the HTTP connection :-)

http://www.delorie.com/pub/djgpp/
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:Where can I find MAKE utility for Dos?

Post by Neo »

Solar wrote: But Cygwin is *Win*, not *DOS*... ;)
I just didn't think there would be people using plain old DOS out there. I thought he would be using it from a DOS box in Windows.
Only Human
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where can I find MAKE utility for Dos?

Post by Solar »

When in doubt, I tend to take people literally. ;)
Every good solution is obvious once you've found it.
Joey

Re:Where can I find MAKE utility for Dos?

Post by Joey »

what is MAKE?
AR

Re:Where can I find MAKE utility for Dos?

Post by AR »

It's a program that executes a specialised script, usually to compile a program that is written in C/C++ in the Unix world. It is suited to this because of the ease of version determination and recompilation when the source is modified.

Example script:

Code: Select all

all: myfile1.o myfile2.o
     $(LD) myfile1.o myfile2.o -o MyProgram

myfile1.o: myfile1.c
     $(CC) -c myfile1.c -o myfile1.o

myfile2.o: myfile2.c
     $(CC) -c myfile2.c -o myfile2.o
Then execute "make all" to build it.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where can I find MAKE utility for Dos?

Post by Solar »

More generally speaking, 'make' is a utility that checks whether a 'source' has been modified after a 'target' has last been created, and runs one or more commands if that is the case (usually to rebuild the 'target' from the 'source').

It is mighty useful in larger software projects, where you don't want to recompile everything just because you touched one source file.
Every good solution is obvious once you've found it.
DevL

Re:Where can I find MAKE utility for Dos?

Post by DevL »

In addition, make is often used to not only build software, but also install it. This is especially true for UNIX envirionements.

Here's an easily digested link: http://www.tldp.org/LDP/LG/current/smith.html

You just have to love this excerpt:
The old UNIX joke, by the way, is what early versions of make said when it could not find the necessary files. In the example above, if there was no love.o, love.c or any other source format, the program would have said:
make: don't know how to make love. Stop.
Post Reply