X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fvorbis%2FMakefile;h=51557e5c6cde1c936e2110c10b00cd3b5b9b9a76;hb=a162148e8a943e50f41941104b6c418ac8b95236;hp=fd8f12920d6ad2d13eb6756f49841ac34c8f9098;hpb=75288bcb5a5a3925cf8e94ba12f034a0a8fd6758;p=melted diff --git a/src/modules/vorbis/Makefile b/src/modules/vorbis/Makefile index fd8f129..51557e5 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 = -lvorbisfile -lvorbis +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)$(libdir)/mlt" + ifneq ($(wildcard .depend),) include .depend endif