Author Topic: "base" directories  (Read 6467 times)

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
"base" directories
« on: March 26, 2007, 11:41:16 am »
Some of the wizards (and what-not) are talking about "base" directories for e.g. SDL or GLUT.
(I guess these are supposed to be like "C:\SDL-1.2.11" for Windows or "/usr/local" for Linux)

Since the Mac doesn't use these, I'm just inserting some fake values there at the moment...
The major use seems to be to append a "include" or "lib" to the base to make -I/-L directories ?


On the Mac, they are using frameworks instead so they don't need any include or library dirs.
Don't have any special entries for frameworks yet, so just adding them to the linker options.

For the includes, I'm bracketing the two-level namespace includes with __APPLE__ for a start.
Later on we might want to educate the system on how to find the framework's "Header" dirs.


Code
#ifdef __APPLE__
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif
Code
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif