smcameron / open-simplex-noise-in-c

Port of Kurt Spencer's java implementation of open simplex noise to C -- Note: This is NOT Ken Perlin's Simplex noise algorithm.
The Unlicense
139 stars 19 forks source link

Use $(CC) rather than gcc in Makefile #14

Closed crabctrl closed 2 years ago

crabctrl commented 2 years ago

Currently the Makefile is hardcoded to use gcc, which doesn't work nicely if the user isn't using gcc to compile their software (eg if they're using clang, or if they need to invoke a different gcc for cross-compilation).

Makefiles support the $(CC) variable (standard behaviour, not a new feature or anything), which defaults to cc (which is an alias to gcc on most systems). The advantage to using this is that it can be overridden with environment variables, allowing the user to select the compiler without having to edit the Makefile.

smcameron commented 2 years ago