Page 1 of 1

DJGPP

Posted: Fri Jun 20, 2003 4:37 pm
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?

Re:DJGPP

Posted: Fri Jun 20, 2003 7:51 pm
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...

Re:DJGPP

Posted: Sat Jun 21, 2003 2:01 am
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 ?