Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

GNU make / DJGPP make difference? (Developers)

posted by Rugxulo Homepage, Usono, 31.08.2008, 00:38

> I know GNU make from *nix and the port mingw32-make, both are identical.

There's actually some reason they keep mingw32-make separate from just calling it "make", but I forget (not POSIX enough??). BTW, I'm no makefile pro, but I do know that makefiles are almost never portable and are hard to write effectively (or read, IMO).

> My makefiles working on windows with mingw32-make doesn't work under DOS
> with make from DJGPP, error message "no target specified and no makefile
> found". I simply join the folder with the source and the makefile and type
> not mingw32-make but simply make.

What OS? It may not be finding the default makefile. And it may be expecting a case sensitive filename, e.g. Makefile or makefile.mak or whatever.

> It seams like make from DJGPP is also a port and no clone. Any idea why it
> doesn't work as jump in replacement?

The DJGPP port has to deal with DOS limitations, e.g. workaround the cmdline size limit, lack of default *nix shell, SFNs, etc. Also, since DOS is (usually) single-tasking, -j doesn't do anything (or at least nobody with knowledge of DR-DOS or Desqview/X bothered to send in their patches).

> If I use make -f c:\fullpath\source\makefile then I get "missing
> separator. Stop". There are tabs and no spaces, created the tabs with
> windows notepad, wordpad and FreeDOS edit and rhide. Same...

Some editors expand all tabs to spaces upon saving (MS Edit?). RHIDE is pretty much abandoned, and Notepad is wimpy (no *nix LF compatibility), plus Wordpad probably isn't even intended for plain text.

> Any advise?

Get a better editor. Tell exactly what OS, what make versions, filesizes and dates, etc. Double check that tabs exist in your makefile. Watch out for filename case sensitivity. And don't expect makefiles to be as portable as you'd hope, they usually aren't. However, sometimes people manage a fairly good job (e.g. S-Lang or Allegro).

There are actually a lot of make clones, and there are equally as many make "improvements". So you've got a lot of exploring to do if you give up on make (mk, Scons, Jam, makemake, cmake, etc).

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 273 users online (0 registered, 273 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum