1# $MirOS: src/gnu/usr.bin/binutils/libiberty/Makefile,v 1.10 2009/02/24 20:00:58 tg Exp $ 2 3.include "../Makefile.inc" 4 5LIB= iberty 6LIBDIR= ${BSD_PREFIX}/lib/gcc/${OStriplet}/3.4.6 7NOPIC= Yes 8SRCS= argv.c concat.c cp-demangle.c \ 9 cp-demint.c cplus-dem.c dyn-string.c fdmatch.c fibheap.c \ 10 floatformat.c fopen_unlocked.c getpwd.c getruntime.c \ 11 hashtab.c hex.c lbasename.c lrealpath.c \ 12 make-relative-prefix.c make-temp-file.c objalloc.c \ 13 obstack.c partition.c pex-common.c pex-one.c pex-unix.c \ 14 pexecute.c physmem.c safe-ctype.c sort.c spaces.c \ 15 splay-tree.c strerror.c \ 16 strsignal.c strverscmp.c ternary.c unlink-if-ordinary.c \ 17 xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c \ 18 xstrndup.c 19 20CPPFLAGS+= -DHAVE_CONFIG_H -I${GNU_LIBIBERTY_SRC} -I${GNU_LIBIBERTY_INC} 21 22.PATH: ${GNU_LIBIBERTY_SRC} 23.PATH: ${GNU_LIBIBERTY_SRC}/testsuite 24.PATH: ${GNUSYSTEM_AUX_DIR} 25 26CLEANFILES+= test-demangle test-demangle.o test-pexecute test-pexecute.o 27 28beforeinstall: 29 mkdir -p ${DESTDIR}${LIBDIR} 30 31check: test-demangle demangle-expected test-pexecute 32 ./test-demangle <${GNU_LIBIBERTY_SRC}/testsuite/demangle-expected 33 ./test-pexecute 34 35test-demangle: test-demangle.o ${_LIBS} 36 ${CC} -L. -o $@ test-demangle.o -liberty 37 38test-demangle.o: test-demangle.c 39 40test-pexecute: test-pexecute.o ${_LIBS} 41 ${CC} -L. -o $@ test-pexecute.o -liberty 42 43test-pexecute.o: test-pexecute.c 44 45.depend: test-demangle.c test-pexecute.c 46 47.include <bsd.lib.mk> 48