X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2FMakefile;h=9ba06bc00448808540b22892eb57b3d79b58d574;hb=34c7916b96a65dbfb6d9414aca781d6292474f98;hp=a5d5d184bb64c03ad12d397055f0598a429ad783;hpb=ac0225a1c4b16cab62e6044b18818f44933a29e9;p=melted diff --git a/src/modules/westley/Makefile b/src/modules/westley/Makefile index a5d5d18..9ba06bc 100644 --- a/src/modules/westley/Makefile +++ b/src/modules/westley/Makefile @@ -1,21 +1,23 @@ include ../../../config.mak -TARGET = ../libmltwestley.so +TARGET = ../libmltwestley$(LIBSUF) OBJS = factory.o \ consumer_westley.o \ producer_westley.o -CFLAGS = -O3 -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 @@ -27,8 +29,8 @@ 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)$(prefix)/share/mlt/modules" + install -m 644 westley.dtd "$(DESTDIR)$(prefix)/share/mlt/modules" ifneq ($(wildcard .depend),) include .depend