Merge ../mlt
[melted] / src / modules / inigo / Makefile
index bed91de..b2e297f 100644 (file)
@@ -1,27 +1,33 @@
+include ../../../config.mak
 
-TARGET = ../libmltinigo.so
+TARGET = ../libmltinigo$(LIBSUF)
 
 OBJS = factory.o \
           producer_inigo.o 
 
-CFLAGS = -O3 -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS += -I../..
+
+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) "$(DESTDIR)$(libdir)/mlt"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif