summaryrefslogtreecommitdiff
path: root/test/ldso/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/ldso/Makefile')
-rw-r--r--test/ldso/Makefile20
1 files changed, 20 insertions, 0 deletions
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
+