X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2FMakefile;h=07ac987c9c89a382ae013cd06e05c2a6be50efa3;hb=21dc56743b907328aee0625b023539dc7bb912d8;hp=37bf55a2c9b06a17b2df2e9c3aa10d523b718d26;hpb=791bd9376050a663e68122d4feb841854805249c;p=melted diff --git a/src/modules/avformat/Makefile b/src/modules/avformat/Makefile index 37bf55a..07ac987 100644 --- a/src/modules/avformat/Makefile +++ b/src/modules/avformat/Makefile @@ -1,7 +1,7 @@ include ../../../config.mak include config.mak -TARGET = ../libmltavformat.so +TARGET = ../libmltavformat$(LIBSUF) OBJS = factory.o \ producer_avformat.o \ @@ -18,7 +18,7 @@ CFLAGS+=-I../.. LDFLAGS+=-L../../framework ifdef LOCAL_FFMPEG - LDFLAGS+=-lmltavformat -lmltavcodec $(EXTRA_LIBS) -lmlt + LDFLAGS+=-lavformat.mlt -lavcodec.mlt $(EXTRA_LIBS) -lmlt else LDFLAGS+=-lavformat -lavcodec $(EXTRA_LIBS) -lmlt endif @@ -30,10 +30,10 @@ all: $(TARGET) $(TARGET): $(OBJS) if [ $(LOCAL_FFMPEG) ] ; then \ $(MAKE) -C ffmpeg all ; \ - cp -f ffmpeg/libavcodec/libavcodec.so ../../framework/libmltavcodec.so ; \ - cp -f ffmpeg/libavformat/libavformat.so ../../framework/libmltavformat.so ; \ + cp -f ffmpeg/libavcodec/libavcodec$(LIBSUF) ../../framework/libavcodec.mlt$(LIBSUF) ; \ + cp -f ffmpeg/libavformat/libavformat$(LIBSUF) ../../framework/libavformat.mlt$(LIBSUF) ; \ fi - $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) + $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS) depend: $(SRCS) if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg dep ; fi @@ -50,8 +50,8 @@ clean: install: all install -m 755 $(TARGET) "$(prefix)/share/mlt/modules" if [ $(LOCAL_FFMPEG) ] ; then \ - install -m 755 ../../framework/libmltavcodec.so "$(prefix)/share/mlt/modules" ; \ - install -m 755 ../../framework/libmltavformat.so "$(prefix)/share/mlt/modules" ; \ + install -m 755 ../../framework/libavcodec.mlt$(LIBSUF) "$(prefix)/lib" ; \ + install -m 755 ../../framework/libavformat.mlt$(LIBSUF) "$(prefix)/lib" ; \ fi ifneq ($(wildcard .depend),)