openposix/functional/timers: Add missing Makefile
PATCH 1/1 openposix/functional/timers: Add missing Makefile
Currently, open_posix_testsuite/scripts/generate-makefiles.sh and local-test think every c file is a test case, only directory with c file will generate Makefile. It doesn't work well in situation with middle layer not having c file like openposix/functional/thread. So add missing Makefile for this case and also add LDLIBS for linking with -lrt.
Signed-off-by Yang Xu <[email protected]>
--- testcases/open_posix_testsuite/functional/Makefile | 2 +- .../open_posix_testsuite/functional/timers/Makefile | 10 ++++++++++ .../functional/timers/timers/LDLIBS | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 testcases/open_posix_testsuite/functional/timers/Makefile create mode 100644 testcases/open_posix_testsuite/functional/timers/timers/LDLIBS
testcases/open_posix_testsuite/functional/Makefile +1 -1
@@ -10,4 +10,4 @@ all clean install test: done distclean-makefiles: - @find */ -name 'Makefile*' | grep -v threads/Makefile | xargs rm -f + @find */ -name 'Makefile*' | grep -v threads/Makefile | grep -v timers/Makefile | xargs rm -f
testcases/open_posix_testsuite/functional/timers/Makefile new file +10 -0
@@ -0,0 +1,10 @@ +# +# Read COPYING for licensing details. +# +# Ngie Cooper, June 2010 +# + +all clean install test: + @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ + $(MAKE) -C $$dir $@; \ + done
testcases/open_posix_testsuite/functional/timers/timers/LDLIBS new file +1 -0
@@ -0,0 +1 @@ +-lrt
Signature · 1 line
2.18.1
PATCH 1/1 openposix/functional/timers: Add missing Makefile
Hi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]