summaryrefslogtreecommitdiff
path: root/lib/libexpat/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-09-22 21:36:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-09-22 21:36:55 +0000
commite732a34ca21a48b24b9d61e422e48d51f536ff95 (patch)
treef07f787924e3f0a73fdb1f880250a4041af943fe /lib/libexpat/Makefile
parent27af6b4586f843b9dee6e1e178a36ecc03f857c2 (diff)
OpenBSD infrastructure to compile simply, and install include files.
Diffstat (limited to 'lib/libexpat/Makefile')
-rw-r--r--lib/libexpat/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile
new file mode 100644
index 00000000000..415fb3019bd
--- /dev/null
+++ b/lib/libexpat/Makefile
@@ -0,0 +1,12 @@
+.PATH: ${.CURDIR}/lib
+
+LIB= expat
+SRCS= xmlparse.c xmltok.c xmlrole.c
+CFLAGS+=-I${.CURDIR}
+
+includes:
+ @cmp -s ${DESTDIR}/usr/include/expat.h ${.CURDIR}/lib/expat.h || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
+ ${.CURDIR}/lib/expat.h ${DESTDIR}/usr/include/expat.h
+
+.include <bsd.lib.mk>