build: added PREFIX to samples/Makefile (don't know how the linux build worked without this!)

This commit is contained in:
Robin Mills 2013-07-24 19:38:05 +00:00
parent 4e530fbce0
commit 1bcce080c2

View File

@ -103,6 +103,8 @@ ifdef DEP_TRACKING
DEP = $(BINSRC:%.cpp=$(DEPDIR)/%.d)
endif
PREFIX = /usr/local/lib
# ******************************************************************************
# Rules
samples: $(BINARY) $(OTHER)
@ -115,7 +117,7 @@ $(BINOBJ): %.o: %.cpp
$(BINARY): %: %.o
mkdir -pv ../bin 2>&1 > /dev/null
$(LIBTOOL) --mode=link $(LINK.cc) -o ../bin/$@ $@.o
$(LIBTOOL) --mode=link $(LINK.cc) -rpath $(PREFIX) -L$(PREFIX) -o ../bin/$@ $@.o
%.ii: %.cpp
set -e; \