Makefile.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # uClibc dlopen tests
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. # rules need a little love to work with glibc ...
  4. export UCLIBC_ONLY := 1
  5. TESTS := dltest dltest2 dlstatic test1 test2 test3 dlundef dlafk dladdr
  6. CFLAGS_dltest := -DLIBNAME="\"./libtest.so\""
  7. CFLAGS_dltest2 := -DLIBNAME="\"./libtest3.so\""
  8. LDFLAGS_dlstatic := -ldl
  9. LDFLAGS_dltest := -ldl -lpthread
  10. LDFLAGS_dltest2 := -ldl -lpthread
  11. LDFLAGS_dlundef := -ldl
  12. LDFLAGS_dlafk := -ldl ./libafk.so -Wl,-rpath,.
  13. LDFLAGS_test1 := -ldl
  14. LDFLAGS_test2 := -ldl
  15. LDFLAGS_test3 := -ldl ./libtest1.so ./libtest2.so -Wl,-rpath,.
  16. LDFLAGS_dladdr := -ldl
  17. DEBUG_LIBS := X
  18. WRAPPER := env $(DEBUG_LIBS)=all LD_LIBRARY_PATH="$$PWD:.:$(LD_LIBRARY_PATH)"
  19. dltest: libtest.so
  20. dltest2: libtest3.so
  21. dlstatic: libstatic.so
  22. dlundef: libundef.so
  23. dlafk: libafk.so
  24. libafk.so: libafk-temp.so
  25. LDFLAGS_libafk.so := ./libafk-temp.so -Wl,-rpath,.
  26. test1: libtest1.so
  27. test2: libtest1.so libtest2.so
  28. test3: libtest1.so libtest2.so
  29. libtest1.so: libtest2.so
  30. LDFLAGS_libtest1.so := ./libtest2.so -Wl,-rpath,.
  31. LDFLAGS_libtest2.so := -Wl,-rpath,.
  32. LDFLAGS_libtest3.so := -lpthread -Wl,-rpath,.