X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fxine%2FMakefile;h=fdbe0c62f21e208446585da62eaf6ec012ad7125;hb=f4bdbe56053cc8debfdb74583977d74323a8ad0d;hp=9a965929285c732ed26d66affb6261694403c50d;hpb=a0a988c50fce047427b445d5e21d7354862e8e23;p=melted diff --git a/src/modules/xine/Makefile b/src/modules/xine/Makefile index 9a96592..fdbe0c6 100644 --- a/src/modules/xine/Makefile +++ b/src/modules/xine/Makefile @@ -1,32 +1,37 @@ include ../../../config.mak -TARGET = ../libmltxine.so +TARGET = ../libmltxine$(LIBSUF) OBJS = factory.o \ deinterlace.o \ - cpu_accel.o \ filter_deinterlace.o -CFLAGS = -O3 -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -DARCH_X86 +ifdef MMX_FLAGS +OBJS += cpu_accel.o +endif + +CFLAGS += -I../../ -DARCH_X86 + +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)$(libdir)/mlt" ifneq ($(wildcard .depend),) include .depend