Makefile 813 B

123456789101112131415161718192021222324252627282930
  1. # uClibc dlopen tests
  2. # Licensed under the GNU Library General Public License, see COPYING.LIB
  3. # rules need a little love to work with glibc ...
  4. export UCLIBC_ONLY := 1
  5. TESTS := dltest dltest2 test1 test2 test3
  6. include ../Test.mak
  7. CFLAGS_dltest := -DLIBNAME="\"./libtest.so\""
  8. CFLAGS_dltest2 := -DLIBNAME="\"./libtest3.so\""
  9. LDFLAGS_dltest := -ldl -lpthread
  10. LDFLAGS_dltest2 := -ldl -lpthread
  11. LDFLAGS_test1 := -ldl
  12. LDFLAGS_test2 := -ldl
  13. LDFLAGS_test3 := -ldl ./libtest1.so ./libtest2.so
  14. DEBUG_LIBS := X
  15. WRAPPER := env $(DEBUG_LIBS)=all LD_LIBRARY_PATH="$$PWD:.:$(LD_LIBRARY_PATH)"
  16. dltest: libtest.so
  17. dltest2: libtest3.so
  18. test1: libtest1.so
  19. test2: libtest1.so libtest2.so
  20. test3: libtest1.so libtest2.so
  21. libtest1.so: libtest2.so
  22. LDFLAGS_libtest1.so := ./libtest2.so
  23. LDFLAGS_libtest3.so := -lpthread