X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=build%2FMakefile.obcl;h=c972a77614fcb62d17051876b1d49d29d053b8df;hb=d8fc08f33d5148be6294a8469066cf6a4604e940;hp=c602c686abbc30d1669282dc329844d195363c1c;hpb=d0e9015651aa960cf8cb58a5ab08da79e6aeb51b;p=chaz%2Fopenbox diff --git a/build/Makefile.obcl b/build/Makefile.obcl index c602c686..c972a776 100644 --- a/build/Makefile.obcl +++ b/build/Makefile.obcl @@ -17,7 +17,7 @@ depdir := $(depdir)/$(dir) all: $(target) $(target): $(objects) - $(LINK) -o $@ $^ $(LDFLAGS) + $(LINK) -rpath $(libdir) -o $@ $^ $(LDFLAGS) $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d $(LTCOMPILE) -c -o $@ $< @@ -25,12 +25,13 @@ $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d $(depdir)/%.d: $(srcdir)/%.c @echo Building dependancies for $< @$(INSTALL) -d $(depdir) - @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $< + @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $< install: $(INSTALL) -d $(DESTDIR)$(libdir)/ $(LIBTOOL) --mode=install $(INSTALL) $(target) \ $(DESTDIR)$(libdir)/$(notdir $(target)) + $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir) uninstall: $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))