X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fvorbis%2FMakefile;h=57faeadc59e2170f3956f2ea953fbde92bb6f858;hb=dbd3f9cca7b7c426d8a30ac7465c2374c603f7cf;hp=3d19024101f88eea8fdbe96ab97f195b609a0816;hpb=f2dda0fcd1c242afcd07f2c2ef98f8f6b3fb0e13;p=melted diff --git a/src/modules/vorbis/Makefile b/src/modules/vorbis/Makefile index 3d19024..57faead 100644 --- a/src/modules/vorbis/Makefile +++ b/src/modules/vorbis/Makefile @@ -1,32 +1,34 @@ include ../../../config.mak -TARGET = ../libmltvorbis.so +TARGET = ../libmltvorbis$(LIBSUF) OBJS = factory.o \ producer_vorbis.o -CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -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) "$(prefix)/share/mlt/modules" + install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules" ifneq ($(wildcard .depend),) include .depend