X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2FMakefile;h=dda026e47e09a8fd894314929bec9c9cdf29dcb0;hb=3902731cb8a9622204d584c4962c74e2a5a35428;hp=160181b647eb2d9914b913940558d1e7131ede60;hpb=f2dda0fcd1c242afcd07f2c2ef98f8f6b3fb0e13;p=melted diff --git a/src/modules/westley/Makefile b/src/modules/westley/Makefile index 160181b..dda026e 100644 --- a/src/modules/westley/Makefile +++ b/src/modules/westley/Makefile @@ -1,34 +1,36 @@ include ../../../config.mak -TARGET = ../libmltwestley.so +TARGET = ../libmltwestley$(LIBSUF) OBJS = factory.o \ consumer_westley.o \ producer_westley.o -CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread `xml2-config --cflags` +CFLAGS += -I../../ `xml2-config --cflags` -LDFLAGS = `xml2-config --libs` +LDFLAGS += `xml2-config --libs` + +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 644 westley.dtd "$(prefix)/share/mlt/modules" + install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt" + install -m 644 westley.dtd "$(DESTDIR)$(prefix)/share/mlt" ifneq ($(wildcard .depend),) include .depend