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?
DJGPP
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:DJGPP
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 ?
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 ?