In maintaining old source at my new job, I'm trying to make things cleaner. In this instance, I've got a big project (1,001 source files) that depends very statically on python2.5. On my dev machine, I've got 2.6 installed, and I'm trying to get this project to include and link against >=2.5 and <3.0.
I see two issues at present. From a .c file:
#include <python2.5/Python.h>
And from the makefile
LDFLAGS = $(LIBS) -lusb-1.0 -lpthread -lSound -lsqlite3 -lm -lglib-2.0 -lpython2.5
So, my question is: how do I alter the .c file such that it uses the appropriate directory and how do I update the makefile so it links against the appropriate library?
EDIT: And while I'm at it, I suppose I could give glib-2.0 the same treatment.
glib-config, I think.