Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig	Tue Jun 25 01:03:47 2002
+++ Makefile	Sat Oct 12 17:58:54 2002
@@ -3,25 +3,24 @@
 # You may want to rename the binary-file.
 BIN_FILENAME = gkrellmms
 
-GTK_INCLUDE ?= `gtk-config --cflags`
-GTK_LIB ?= `gtk-config --libs`
+GTK_INCLUDE ?= `$(GTK_CONFIG) --cflags gthread`
+GTK_LIB ?= `$(GTK_CONFIG) --libs gthread`
 IMLIB_INCLUDE ?= `imlib-config --cflags-gdk`
 IMLIB_LIB ?= `imlib-config --libs-gdk`
 XMMS_INCLUDE ?= `xmms-config --cflags`
 XMMS_LIB ?= `xmms-config --libs`
-INSTALL_DIR ?= /usr/local/lib/gkrellm/plugins
+INSTALL_DIR ?= $(PREFIX)/libexec/gkrellm/plugins
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
+CFLAGS += -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
 LIBS = $(GTK_LIB) $(IMLIB_LIB) $(XMMS_LIB)
-LFLAGS = -shared -lpthread
-
-CC ?= gcc 
-CC += $(CFLAGS) $(FLAGS)
+LFLAGS = -shared
 
 OBJS = gkrellmms.o options.o playlist.o
 
+all:	$(BIN_FILENAME).so
+
 $(BIN_FILENAME).so: $(OBJS)
-	$(CC) $(OBJS) -o $(BIN_FILENAME).so $(LFLAGS) $(LIBS)
+	$(CC) $(CFLAGS) $(OBJS) -o $(BIN_FILENAME).so $(LFLAGS) $(LIBS)
 
 clean:
 	rm -f *.o core *.so* *.bak *~
