root/branches/gajim_0.9/src/common/Makefile

Revision 3430, 425 bytes (checked in by asterix, 3 years ago)

we can use make OPTFLAGS=... to add some flags

Line 
1# Set the C flags to include the GTK+ and Python libraries
2PYTHONVER = `python -c 'import sys; print sys.version[:3]'`
3CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python$(PYTHONVER) -I.
4LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0`
5
6all: idle.so
7
8idle.so:
9        $(CC) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -shared idle.c $^ -o $@ -L/usr/X11R6$(LIBDIR) -lX11 -lXss -lXext
10
11clean:
12        rm -f *.so
13        rm -rf build
Note: See TracBrowser for help on using the browser.