2005-05-06 14:06:10 +02:00
|
|
|
# Set the C flags to include the GTK+ and Python libraries
|
|
|
|
PYTHONVER = `python -V 2>&1 | awk '{print $$2}' | cut -f1,2 -d.`
|
|
|
|
CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python$(PYTHONVER) -I.
|
|
|
|
LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0`
|
|
|
|
|
|
|
|
all: idle.so
|
|
|
|
|
|
|
|
idle.so:
|
2005-05-20 16:03:02 +02:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared idle.c $^ -o $@ -L/usr/X11R6/lib -lX11 -lXss -lXext
|
2004-06-09 16:26:54 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.so
|
|
|
|
rm -rf build
|