X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fvorbis%2FMakefile;h=57faeadc59e2170f3956f2ea953fbde92bb6f858;hb=8820b2068dee09af6b9ddb5ed078abbeeca5fdf2;hp=6e28934f6ab6e78ffc756b9bc852e16edc953b6c;hpb=5f0547204a5a08185e9d8162016cc2ec9a670486;p=melted diff --git a/src/modules/vorbis/Makefile b/src/modules/vorbis/Makefile index 6e28934..57faead 100644 --- a/src/modules/vorbis/Makefile +++ b/src/modules/vorbis/Makefile @@ -1,29 +1,35 @@ +include ../../../config.mak -TARGET = ../libmltvorbis.so +TARGET = ../libmltvorbis$(LIBSUF) OBJS = factory.o \ producer_vorbis.o -CFLAGS = -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 +CFLAGS += -I../.. -LDFLAGS = -lvorbis -lvorbisfile +LDFLAGS += -lvorbisfile -lvorbis + +LDFLAGS+=-L../../framework -lmlt SRCS := $(OBJS:.o=.c) all: $(TARGET) $(TARGET): $(OBJS) - $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) + $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS) depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend -dist-clean: clean +distclean: clean rm -f .depend clean: rm -f $(OBJS) $(TARGET) +install: all + install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules" + ifneq ($(wildcard .depend),) include .depend endif