summaryrefslogtreecommitdiff
path: root/test/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'test/ldso')
-rw-r--r--test/ldso/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/ldso/Makefile b/test/ldso/Makefile
index 59946ae85..ac33e8e27 100644
--- a/test/ldso/Makefile
+++ b/test/ldso/Makefile
@@ -1,17 +1,21 @@
TESTDIR=../
include $(TESTDIR)/Rules.mak
-all: dltest shared run
+all: dltest libhowdy.so run
-dltest:
+dltest.o: dltest.c
$(CC) $(CFLAGS) -c dltest.c -o dltest.o
+
+howdy.o: howdy.c
$(CC) $(CFLAGS) -c howdy.c -o howdy.o
-shared:
+libhowdy.so: howdy.o
$(CC) $(CFLAGS) -shared -o libhowdy.so -Wl,-soname,libhowdy.so howdy.o
+
+dltest: dltest.o
$(CC) $(CFLAGS) -o dltest dltest.o -ldl
-run:
+run: dltest libhowdy.so
@echo Running dltest
./dltest