X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2FMakefile;h=52174e3522875ba8535068d6bc34aed21dcbce42;hb=efe08354d45db7bf5478ffa17c35330a3e0d415c;hp=3cb84617d60ac1492f9f3df16682a476f409dff9;hpb=4ed2712bbdac2182c7c0d6477ac77c9f92aaf02a;p=melted diff --git a/src/framework/Makefile b/src/framework/Makefile index 3cb8461..52174e3 100644 --- a/src/framework/Makefile +++ b/src/framework/Makefile @@ -1,28 +1,37 @@ -FRAMEWORK_OBJS = mlt_frame.o \ - mlt_property.o \ - mlt_properties.o \ - mlt_service.o \ - mlt_producer.o \ - mlt_multitrack.o \ - mlt_consumer.o \ - mlt_filter.o \ - mlt_transition.o \ - mlt_tractor.o \ - mlt_factory.o \ - mlt_repository.o - -OBJS = $(FRAMEWORK_OBJS) +TARGET = libmlt.so + +OBJS = mlt_frame.o \ + mlt_deque.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 \ + mlt_pool.o SRCS := $(OBJS:.o=.c) -CFLAGS = -g -Wall -D_FILE_OFFSET_BITS=64 -pthread +CFLAGS = -g -O3 -Wall -D_FILE_OFFSET_BITS=64 -pthread LDFLAGS = -lm -ldl -lpthread -all: libmlt.so +ifeq ($(MLT_GPROF),true) +CFLAGS+=-p +LDFLAGS+=-p +endif + +all: $(TARGET) -libmlt.so: $(OBJS) +$(TARGET): $(OBJS) $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) depend: $(SRCS) @@ -32,7 +41,7 @@ dist-clean: clean rm -f .depend clean: - rm -f $(FRAMEWORK_OBJS) libmlt.so + rm -f $(OBJS) $(TARGET) ifneq ($(wildcard .depend),) include .depend