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