mirror of
https://github.com/openbsd/src.git
synced 2025-01-04 23:35:36 -08:00
08819b4170
OpenBSD are security fixes #34 #466 #484 and other changes #467 #473 #483. A new error number in a public header requires a major library bump. Two functions have been added to API. OK tb@
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.16 2021/05/26 19:14:32 bluhm Exp $
|
|
|
|
.PATH: ${.CURDIR}/lib
|
|
|
|
.include <bsd.own.mk> # to check ${COMPILER_VERSION}
|
|
|
|
LIB= expat
|
|
SRCS= xmlparse.c xmltok.c xmlrole.c
|
|
CFLAGS+=-I${.CURDIR}
|
|
.if ${COMPILER_VERSION:L} != "gcc3"
|
|
CFLAGS+=-fvisibility=hidden -DXML_ENABLE_VISIBILITY=1
|
|
.endif
|
|
|
|
PC_FILES=expat.pc
|
|
CLEANFILES+=${PC_FILES}
|
|
|
|
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
|
|
cmp -s ${DESTDIR}/usr/include/expat_external.h ${.CURDIR}/lib/expat_external.h || \
|
|
${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
|
|
${.CURDIR}/lib/expat_external.h ${DESTDIR}/usr/include/expat_external.h
|
|
|
|
all: ${PC_FILES}
|
|
${PC_FILES}: lib/expat.h
|
|
/bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
|
|
|
|
beforeinstall:
|
|
${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
|
|
-m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/
|
|
|
|
.include <bsd.lib.mk>
|