From f594d2670d37ccc7439ebee53ca2220e3a6c3121 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 29 May 2005 21:02:23 +0000 Subject: [PATCH] better Makefile --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6ac8ac2aa..91788bc86 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,7 @@ # 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 gtkspell-2.0` -fpic -I/usr/include/python$(PYTHONVER) -I. -LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0 gtkspell-2.0` +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: trayicon.so gtkspell.so @@ -10,7 +10,7 @@ trayicon.so: trayicon.o eggtrayicon.o trayiconmodule.o $(CC) $(LDFLAGS) -shared $^ -o $@ gtkspell.so: - $(CC) $(CFLAGS) $(LDFLAGS) -shared gtkspellmodule.c $^ -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) `pkg-config --libs --cflags gtkspell-2.0` -shared gtkspellmodule.c $^ -o $@ # The path to the GTK+ python types DEFS=`pkg-config --variable=defsdir pygtk-2.0`