$OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/03 20:34:17 sturm Exp $
--- Makefile.orig	2002-09-26 06:56:06.000000000 -0700
+++ Makefile	2003-11-01 13:46:23.000000000 -0800
@@ -1,16 +1,13 @@
 # Sample Makefile for a GKrellM plugin
 
-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
-GTK_LIB = `pkg-config gtk+-2.0 --libs`
+GTK_INCLUDE = `pkg-config gtk+-2.0 gthread-2.0 --cflags`
+GTK_LIB = `pkg-config gtk+-2.0 gthread-2.0 --libs`
 
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) -g
-#LIBS = $(GTK_LIB) $(IMLIB_LIB) -lefence
-LIBS = $(GTK_LIB) $(IMLIB_LIB)
+CFLAGS += -fPIC $(GTK_INCLUDE) -g -I${LOCALBASE}/include
+LIBS += $(GTK_LIB) $(IMLIB_LIB)
 
-LFLAGS = -shared -W1 
-
-CC = gcc $(CFLAGS) $(FLAGS)
+LFLAGS += -shared -W1 -pthread
 
 OBJS = gkrellmlaunch.o
 
