X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2FMakefile;h=5f8fc34de86fa969531cee886a0ca15e45d8f3bd;hb=10be0eed6b4e815fa4f6c3942598eecaef3ce058;hp=871c9ac6a498688a9f13e3b4e2d300ba082c169c;hpb=8a3795b090723264c973d274eedc28da480e76fd;p=melted diff --git a/src/modules/westley/Makefile b/src/modules/westley/Makefile index 871c9ac..5f8fc34 100644 --- a/src/modules/westley/Makefile +++ b/src/modules/westley/Makefile @@ -1,20 +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 @@ -25,6 +28,10 @@ dist-clean: clean clean: rm -f $(OBJS) $(TARGET) +install: all + install -m 755 $(TARGET) "$(prefix)/share/mlt/modules" + install -m 644 westley.dtd "$(prefix)/share/mlt/modules" + ifneq ($(wildcard .depend),) include .depend endif