summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-11-26 02:43:15 +0000
committerDavid Schleef <ds@schleef.org>2001-11-26 02:43:15 +0000
commit71bb4b36544de1a76edbc299dd45087a8db91587 (patch)
tree21625d13f0b9cd7c45b50391cfceb9fb91fa5043 /test
parented93e45cfe7121ddf078063803846a6e12925e1b (diff)
Fix dependencies
Diffstat (limited to 'test')
-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