Makefile includedir problem
I'm trying to build a game called "Crack Attack!". My GL library, however, isn't in the standard location. So I configure with --prefix=/'location to my stuff'
Then I run make and it barfs. It doesn't know where to look for include files. Turns out that the makefile generated in the src directory doesn't inherit includedir from the parent directory, so I modify src/Makefile.in to: Code:
INCLUDES = -DNDEBUG -DDATA_DIRECTORY='"${pkgdatadir}/"' -I$(includedir) It definitely changes the output, but the problem is now this: Code:
In file included from <include dir>/GL/glut.h:17, Any pointers? |
Quote:
Quote:
# COPTS=-I/path-to-GL-headers ./configureThat will tell the configure script to add the path to your GL headers to its include file search path. That should fix your problem. |
Thanks for the reply, David1357. I tried your suggestion, unfortunately it had no effect.
The additional variable makes no effect on either Makefile or src/Makefile following the configure step. So it does not affect the make process and it produces output as if I never entered the variable at all. Perhaps the make system employed by the fine people at Crack Attack! isn't aware of the usual variables, and overwrites or ignores them. |
All times are GMT -5. The time now is 11:17 PM. |