-FRAMEWORK_OBJS = mlt_frame.o \
- mlt_property.o \
- mlt_properties.o \
- mlt_service.o \
- mlt_producer.o \
- mlt_multitrack.o \
- mlt_playlist.o \
- mlt_consumer.o \
- mlt_filter.o \
- mlt_transition.o \
- mlt_field.o \
- mlt_tractor.o \
- mlt_factory.o \
- mlt_repository.o
-
-OBJS = $(FRAMEWORK_OBJS)
+TARGET = libmlt.so
+
+OBJS = mlt_frame.o \
+ mlt_property.o \
+ mlt_properties.o \
+ mlt_service.o \
+ mlt_producer.o \
+ mlt_multitrack.o \
+ mlt_playlist.o \
+ mlt_consumer.o \
+ mlt_filter.o \
+ mlt_transition.o \
+ mlt_field.o \
+ mlt_tractor.o \
+ mlt_factory.o \
+ mlt_repository.o
SRCS := $(OBJS:.o=.c)
LDFLAGS = -lm -ldl -lpthread
-all: libmlt.so
+all: $(TARGET)
-libmlt.so: $(OBJS)
+$(TARGET): $(OBJS)
$(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
depend: $(SRCS)
rm -f .depend
clean:
- rm -f $(FRAMEWORK_OBJS) libmlt.so
+ rm -f $(OBJS) $(TARGET)
ifneq ($(wildcard .depend),)
include .depend