diff options
Diffstat (limited to 'test/libelf/tset/elf_getarhdr/Makefile')
-rw-r--r-- | test/libelf/tset/elf_getarhdr/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/libelf/tset/elf_getarhdr/Makefile b/test/libelf/tset/elf_getarhdr/Makefile new file mode 100644 index 0000000000000..9a8245f6f53ee --- /dev/null +++ b/test/libelf/tset/elf_getarhdr/Makefile @@ -0,0 +1,29 @@ +# $Id: Makefile 1329 2010-12-26 19:23:13Z jkoshy $ + +TOP= ../../../.. + +TS_SRCS= getarhdr.m4 + +# These names must match those in the test case code. +TS_DATA= a.ar a-bsd.ar a1.o a2.o +TS_LONGNAME= "s------------------------2" +CLEANFILES+= a1.c a2.c s1 ${TS_LONGNAME} "s 3" + +a1.c: .SILENT + echo "int a1;" > ${.TARGET} +a2.c: .SILENT + echo "int a2;" > ${.TARGET} + +a.ar: a1.o a2.o .SILENT + rm -f ${.TARGET} + echo 'This is s1.' > s1 + echo 's2.' > ${TS_LONGNAME} + echo 's-3.' > "s 3" + ${AR} crv ${.TARGET} s1 a1.o ${TS_LONGNAME} a2.o "s 3" > /dev/null + +a-bsd.ar: a.ar .SILENT + rm -f ${.TARGET} + ${ELFTOOLCHAIN_AR} -F bsd -crv ${.TARGET} s1 a1.o ${TS_LONGNAME} \ + a2.o "s 3" > /dev/null + +.include "${TOP}/mk/elftoolchain.tet.mk" |