DJGPP

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
chrisa128

DJGPP

Post by chrisa128 »

Hi, Im trying to assemble some code with a makefile written for Linux under windows with DJGPP and NASM.

It has a -Wall option in the makefile which causes GCC to give me unrecognised parameter. Without this however I can't get it to compile properly.

Can anyone help?
Digibliss

Re:DJGPP

Post by Digibliss »

I would suggest you use cygwin, since it is a more ported version and if i believe i am correct, will handle makefiles for linux better then djgpp...
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:DJGPP

Post by Pype.Clicker »

the trick i use was to have target-specific commands put in a separate makefile.dos or makefile.linux (for instance in this case you would define CFLAGS in makefile.$(OSTYPE) so that makefile.linux has -Wall and makefile.dos doesn't...

main makefiles do "include makefile.$(OSTYPE)" where OSTYPE is an environment variable (already set in linux, to be set manually in DOS)

btw, are you sure your versions of GCC are the same in both environments ?
Post Reply