$OpenBSD: patch-Makefile_in,v 1.5 2006/03/20 10:11:02 bernd Exp $
--- Makefile.in.orig	Thu Feb 10 16:52:02 2005
+++ Makefile.in	Sat Jan 21 16:32:37 2006
@@ -44,15 +44,15 @@ MANFILE = $(srcdir)/doc/xmlwf.1
 APIHEADER = $(srcdir)/lib/expat.h $(srcdir)/lib/expat_external.h
 LIBRARY = libexpat.la
 
-ifndef INSTALL_ROOT
+.ifndef INSTALL_ROOT
 INSTALL_ROOT=$(DESTDIR)
-endif
+.endif
 
 default:  buildlib xmlwf/xmlwf
 
 buildlib: $(LIBRARY)
 
-all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
+all: $(LIBRARY) xmlwf/xmlwf
 
 clean:
 	cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
@@ -157,10 +157,10 @@ tests/chardata.o: tests/chardata.c tests
 tests/minicheck.o: tests/minicheck.c tests/minicheck.h
 tests/runtests.o: tests/runtests.c tests/chardata.h
 tests/runtests: tests/runtests.o tests/chardata.o tests/minicheck.o $(LIBRARY)
-	$(LINK_EXE) $^
+	$(LINK_EXE) $?
 tests/runtestspp.o: tests/runtestspp.cpp tests/runtests.c tests/chardata.h
 tests/runtestspp: tests/runtestspp.o tests/chardata.o tests/minicheck.o $(LIBRARY)
-	$(LINK_CXX_EXE) $^
+	$(LINK_CXX_EXE) $?
 
 tests/xmlts.zip:
 	wget --output-document=tests/xmlts.zip \
@@ -172,10 +172,12 @@ tests/XML-Test-Suite: tests/xmlts.zip
 run-xmltest: xmlwf/xmlwf tests/XML-Test-Suite
 	tests/xmltest.sh
 
-.SUFFIXES: .c .lo .o
+.SUFFIXES: .c .cpp .lo .o
 
 .c.o:
 	$(COMPILE) -o $@ -c $<
+.cpp.o:
+	$(CXXCOMPILE) -o $@ -c $<
 .c.lo:
 	$(LTCOMPILE) -o $@ -c $<
 
