1 Link against sources instead of installation paths that aren't DESTDIRed.
2 Patch taken from gentoo portage, upstream status unknown, author
3 probably Diego Pettenò.
5 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
10 $(OBJDIR)/slsh_exe: $(OBJDIR)/slsh.o $(OBJDIR)/readline.o
11 $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh_exe $(LDFLAGS) $(SRC_LIBS)
12 $(OBJDIR)/slsh: $(OBJDIR)/slsh.o $(OBJDIR)/readline.o
13 - $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh $(LDFLAGS) $(INST_LIBS)
14 + $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh $(LDFLAGS) $(SRC_LIBS)
15 $(OBJDIR)/slsh.o: $(OBJDIR) slsh.c slsh.h config.h Makefile
16 cd $(OBJDIR) && $(CC) -c $(CFLAGS) $(SLANG_SRCINC) $(DEFS) $(SRCDIR)/slsh.c
17 $(OBJDIR)/readline.o: $(OBJDIR) readline.c slsh.h config.h Makefile