$OpenBSD: patch-ipl_Makefile,v 1.2 2006/10/16 10:01:55 espie Exp $
--- ipl/Makefile.orig	Fri Jan 10 16:30:01 2003
+++ ipl/Makefile	Mon Oct 16 10:38:51 2006
@@ -8,9 +8,12 @@ All:	Ilib Ibin
 
 Ilib:	cfuncs/libcfunc.so
 cfuncs/libcfunc.so:  ../bin/icont
-	cp incl/*.icn gincl/*.icn cfuncs/icall.h ../lib
+	cp incl/*.icn cfuncs/icall.h ../lib
 	cd procs;  LPATH= ../../bin/icont -usc *.icn; mv *.u? ../../lib
-	cd gprocs; LPATH= ../../bin/icont -usc *.icn; mv *.u? ../../lib
+	if [ "x$(XL)" != "x" ]; then \
+	    cp incl/*.icn gincl/*.icn cfuncs/icall.h ../lib; \
+	    cd gprocs; LPATH= ../../bin/icont -usc *.icn; mv *.u?  ../../lib; \
+	fi
 	if grep '^ *# *define LoadFunc' ../src/h/define.h >/dev/null; \
 	   then $(MAKE) Cfunctions; fi
 
