From 71bb4b36544de1a76edbc299dd45087a8db91587 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 26 Nov 2001 02:43:15 +0000 Subject: Fix dependencies --- test/ldso/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.3