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 mr, 31.08.2008, 02:04

> > 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?

Because this is a DOS forum I am using DOS. Mostly FreeDOS.

> 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.

I think in case of DJGPP / make it's makefile.

> > 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?).

I am not using ms edit.

> RHIDE is pretty much abandoned, and Notepad is wimpy (no *nix LF compatibility),

Only used rhide because it was mentoined in the DJGPP faq http://www.delorie.com/djgpp/v2faq/faq22_17.html and I only used it to create the tab.

> plus Wordpad probably isn't even intended for plain text.
Well, I save as normal .txt. Always thought it's some kind of a simple standard. But well, it might be indeed not the best tool.

> > Any advise?
>
> Get a better editor.

FreeDOS edit isn't good? I see. Tabs on FreeDOS are spaces on windows...

> Tell exactly what OS

FreeDOS 1.0

> what make versions

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-pc-msdosdjgpp

> filesizes and dates, etc.

My test examples have minimal size and made today.

> Double check that tabs exist in your makefile.

It does, it's perhaps just the wrong editor.

> Watch out for filename case sensitivity.

Ok.

> 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).

Well, make is the usual way. I've just downloaded the source for an DOS application with premade makefiles but make didn't work. Make also didn't work with minimal 100% working on mingw32-make. I think I am just messing up something and it's not the limit of make.

 

Complete thread:

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