1# $OpenBSD: Makefile.bsd-wrapper,v 1.15 2014/08/31 01:02:48 miod Exp $ 2 3LIB= iberty 4CPPFLAGS+= -DHAVE_CONFIG_H -I$(.CURDIR)/src -I$(.CURDIR)/include -I$(.OBJDIR) 5 6HOST_FILES!= cat $(.OBJDIR)/needed-list 2>/dev/null||true 7 8.PATH: ${.CURDIR}/src 9 10SRCS= argv.c choose-temp.c concat.c cplus-dem.c cp-demangle.c \ 11 cp-demint.c \ 12 dyn-string.c fdmatch.c fopen_unlocked.c \ 13 getopt.c getopt1.c getpwd.c getruntime.c \ 14 hashtab.c hex.c fibheap.c partition.c \ 15 floatformat.c make-temp-file.c make-relative-prefix.c \ 16 md5.c objalloc.c obstack.c \ 17 pex-common.c pex-unix.c pexecute.c \ 18 regex.c safe-ctype.c spaces.c splay-tree.c \ 19 strerror.c strsignal.c strverscmp.c \ 20 xatexit.c xexit.c xmalloc.c xmemdup.c xstrerror.c xstrdup.c \ 21 physmem.c lbasename.c lrealpath.c unlink-if-ordinary.c \ 22 $(HOST_FILES) 23 24# XXX -- These files are generated during the PREREQ variable assignment. 25CLEANFILES+= config.h config.status needed-list 26 27# and more 28CLEANFILES+= Makefile config.cache config.log stamp-h xhost-mkfrag \ 29 testsuite/Makefile libiberty.info 30 31 32depend: needed-list 33 34needed-list: config.status 35 ${MAKE} ${GNUCFLAGS} CC=${CC} needed-list 36 37config.status: Makefile.in configure 38 PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 39 INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ 40 MAKEINFO='makeinfo --no-split' \ 41 /bin/sh ${.CURDIR}/src/configure \ 42 --prefix=/usr --with-local-prefix=/usr ${CF} \ 43 && touch config.status 44 45all: libiberty.info 46 47libiberty.info: 48 makeinfo --no-split -I${.CURDIR}/src ${.CURDIR}/src/libiberty.texi 49 50afterinstall: 51 ${INSTALL} ${INSTALL_COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \ 52 libiberty.info $(DESTDIR)/usr/share/info 53 54.include <bsd.lib.mk> 55