summaryrefslogtreecommitdiff
path: root/test/libelf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/libelf/Makefile')
-rw-r--r--test/libelf/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/libelf/Makefile b/test/libelf/Makefile
new file mode 100644
index 0000000000000..903221d9bafa5
--- /dev/null
+++ b/test/libelf/Makefile
@@ -0,0 +1,36 @@
+# $Id: Makefile 2137 2011-11-10 13:09:30Z jkoshy $
+
+TOP = ../..
+
+.include "${TOP}/mk/elftoolchain.tetvars.mk"
+
+.if !defined(TET_EXECUTE)
+TET_EXECUTE= ${.OBJDIR}
+.endif
+
+.if make(tccbuild)
+TET_OPTIONS+= -b
+.endif
+
+.if make(tccclean)
+TET_OPTIONS+= -c
+.endif
+
+.if make(execute) || make(test)
+TET_OPTIONS+= -e
+.endif
+
+.MAIN: all
+
+.PHONY: clobber execute tccbuild tccclean test
+
+execute tccbuild tccclean test:
+ TET_ROOT=${TET_ROOT} TET_EXECUTE=${TET_EXECUTE} \
+ TET_SUITE_ROOT=${.CURDIR} ${TET_ROOT}/bin/tcc ${TET_OPTIONS} .
+
+clobber: clean
+ rm -rf ${TET_RESULTS_DIR} ${TET_TMP_DIR}
+
+SUBDIR= tset
+
+.include <bsd.subdir.mk>