summaryrefslogtreecommitdiff
blob: 3f85f5fdb854d561db0a9b35d16a5ae4dd506bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 Makefile.rules |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile.rules b/Makefile.rules
index 0c2f1d1..a3960b5 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -53,20 +53,20 @@ libtecla.map.opt: $(srcdir)/libtecla.map
 
 demos: $(DEMO_PROGS)
 
-demo$(SUFFIX): $(OBJDIR)/demo.o
-	LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
+demo$(SUFFIX): $(OBJDIR)/demo.o libtecla$(SUFFIX)$(SHARED_EXT)
+	LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) -o $@ \
  $(OBJDIR)/demo.o -L. -ltecla$(SUFFIX) $(LIBS)
 
-demo2$(SUFFIX): $(OBJDIR)/demo2.o
-	LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
+demo2$(SUFFIX): $(OBJDIR)/demo2.o libtecla$(SUFFIX)$(SHARED_EXT)
+	LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) -o $@ \
  $(OBJDIR)/demo2.o -L. -ltecla$(SUFFIX) $(LIBS)
 
-demo3$(SUFFIX): $(OBJDIR)/demo3.o
-	LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
+demo3$(SUFFIX): $(OBJDIR)/demo3.o libtecla$(SUFFIX)$(SHARED_EXT)
+	LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) -o $@ \
  $(OBJDIR)/demo3.o -L. -ltecla$(SUFFIX) $(LIBS)
 
-enhance$(SUFFIX): $(OBJDIR)/enhance.o
-	LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(LDFLAGS) $(CFLAGS) -o $@ \
+enhance$(SUFFIX): $(OBJDIR)/enhance.o libtecla$(SUFFIX)$(SHARED_EXT)
+	LD_RUN_PATH="$(LIBDIR)" $(CC) $(LDFLAGS) $(CFLAGS) -o $@ \
  $(OBJDIR)/enhance.o -L. -ltecla$(SUFFIX) $(LIBS)
 
 #-----------------------------------------------------------------------