aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraugust black <augmentus@users.sourceforge.net>2012-08-30 15:32:17 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:05:31 +0200
commit8c49a709b2f3c7f1bdfda0c82e79446f0697123e (patch)
treeb27a5ef567784e79b2c5786b22a5a775ccd34f1d
parenta81af1142aba2c30b3be3a08ae5f0eb6f5d155f7 (diff)
fixed linking order in MakefileHEADsvn2git-headmaster
svn path=/trunk/externals/august/readanysf~/; revision=16185
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index a00f6f0..ea36077 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
# Edit these two variables to suit your system.
# You need both gavl and gmerlin_avdec libs to compile
-
GAVLPREFIX=/usr/local
#GAVLPREFIX=/opt/gmerlin
PD_INCLUDES=/usr/include
@@ -21,7 +20,7 @@ endif
ifeq ($(UNAME), Linux)
TARGET=pd_linux
STRIP=strip --strip-unneeded
-PD_LDFLAGS = -L$(GAVLPREFIX)/lib -lpthread -lgavl -lgmerlin_avdec
+PD_LDFLAGS = -L$(GAVLPREFIX)/lib -lgavl -lgmerlin_avdec -lpthread
GAVLPATH=$(GAVLPREFIX)/include
CXXFLAGS=-Wall
PD_CXXFLAGS = -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PD_INCLUDES)
@@ -52,19 +51,21 @@ PD_LDFLAGS += $(LDFLAGS)
all: $(TARGET)
pd_linux: src/readanysf~.cpp objs/FifoVideoFrames.o objs/FifoAudioFrames.o objs/ReadMedia.o
- $(CXX) -shared -o readanysf~.pd_linux $(PD_CXXFLAGS) $(PD_LDFLAGS) \
+ $(CXX) -shared -o readanysf~.pd_linux $(PD_CXXFLAGS) \
src/readanysf~.cpp \
objs/FifoAudioFrames.o \
objs/FifoVideoFrames.o \
- objs/ReadMedia.o
+ objs/ReadMedia.o \
+ $(PD_LDFLAGS)
$(STRIP) readanysf~.pd_linux
pd_darwin: src/readanysf~.cpp objs/FifoVideoFrames.o objs/FifoAudioFrames.o objs/ReadMedia.o
- $(CXX) $(PD_LDFLAGS) -o readanysf~.pd_darwin $(PD_CXXFLAGS) \
+ $(CXX) -o readanysf~.pd_darwin $(PD_CXXFLAGS) \
src/readanysf~.cpp \
objs/FifoAudioFrames.o \
objs/FifoVideoFrames.o \
- objs/ReadMedia.o
+ objs/ReadMedia.o \
+ $(PD_LDFLAGS)
$(STRIP) readanysf~.pd_darwin
mkdir -p readanysf~$(VERSION)_MacOSX-Intel
mkdir -p readanysf~$(VERSION)_MacOSX-Intel/readanysf~