$OpenBSD: patch-src_common_Makefile,v 1.1 2001/07/03 13:13:13 espie Exp $
--- src/common/Makefile.orig	Sun Jul  1 13:00:31 2001
+++ src/common/Makefile	Sun Jul  1 13:04:42 2001
@@ -1,3 +1,5 @@
+XLLINK=-L../../bin -lXpm $(XLIBS)
+XPM=xpm
 include ../../Makedefs
 
 
@@ -16,7 +18,7 @@ patchstr:	patchstr.c
 		cp patchstr ../../bin
 
 xpmaybe:
-		-if [ "x$(XL)" != "x" ]; then $(MAKE) xpm; fi
+		-if [ "x$(XL)" != "x" ]; then $(MAKE) $(XPM); fi
 
 xpm:
 		cd ../xpm; $(MAKE) libXpm.a
