Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig	Sun Jan 21 05:28:38 2001
+++ Makefile	Mon Feb  5 19:01:26 2001
@@ -3,29 +3,29 @@
 # 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`
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
+CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
 LIBS = $(GTK_LIB) $(IMLIB_LIB) $(XMMS_LIB)
-LFLAGS = -shared -lpthread
-
-CC = gcc $(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 *~
 
 install: 
-	install -c -s -m 755 $(BIN_FILENAME).so /usr/share/gkrellm/plugins
+	install -c -s -m 755 $(BIN_FILENAME).so $(PREFIX)/libexec/gkrellm/plugins
 
 gkrellmms.c.o: gkrellmms.c
 options.c.o: options.c
