D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Platform dependent makefiles

 

Does anyone know if make has a method for detecting the platform and
doing different things accordingly?
The problem is that windows has totally different paths for libraries
and we can't use sdl-config or any bash scripts.

I may be wrong on this, but I don't think there's a way to do that purely at the make level. Personally, I've always handled different unix platforms by using uname and setting macros and for Windows I'd have a completely different Makefile. It's definitely the easier way to do it.
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html