From d9ea262db5f34295c2ad4c42559faf958abccf1b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 29 Jun 2001 22:48:24 +0000 Subject: Add a dlopen test --- test/ldso/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/ldso/Makefile (limited to 'test/ldso/Makefile') diff --git a/test/ldso/Makefile b/test/ldso/Makefile new file mode 100644 index 000000000..3131a715a --- /dev/null +++ b/test/ldso/Makefile @@ -0,0 +1,20 @@ +TESTDIR=../ +include $(TESTDIR)/Rules.mak + +all: dltest shared run + +dltest: + $(TESTCC) $(TEST_CFLAGS) -c dltest.c -o dltest.o + $(TESTCC) $(TEST_CFLAGS) -c howdy.c -o howdy.o + +shared: + $(TESTCC) $(TEST_CFLAGS) -shared -o libhowdy.so -Wl,-soname,libhowdy.so howdy.o + $(TESTCC) $(TEST_CFLAGS) -o dltest dltest.o -ldl + +run: + @echo Running dltest + ./dltest + +clean: + rm -f *.o *.so dltest core + -- cgit v1.2.3