1 include ../../config.mak
5 ifneq ($(targetos), Darwin)
6 LIBNAME = libmiracle$(LIBSUF)
7 LIBTARGET = $(LIBNAME).$(version)
8 LIBSONAME = $(LIBNAME).$(soversion)
9 SHFLAGS += -Wl,-soname,$(LIBSONAME)
11 LIBNAME = libmiracle$(LIBSUF)
12 LIBTARGET = libmiracle.$(version)$(LIBSUF)
13 LIBSONAME = libmiracle.$(soversion)$(LIBSUF)
14 SHFLAGS += -install_name $(libdir)/$(LIBSONAME) -current_version $(version) -compatibility_version $(soversion)
19 LIB_OBJS = miracle_log.o \
21 miracle_connection.o \
25 miracle_unit_commands.o
27 INCS = miracle_server.h \
31 OBJS = $(APP_OBJS) $(LIB_OBJS)
33 CFLAGS += -I.. $(RDYNAMIC)
35 LDFLAGS += -L../valerie -lvalerie
36 LDFLAGS += -L../framework -lmlt -lpthread
42 $(TARGET): $(APP_OBJS) $(LIBTARGET)
43 $(CC) -o $@ $(APP_OBJS) -L. -lmiracle $(LDFLAGS)
45 $(LIBTARGET): $(LIB_OBJS)
46 $(CC) $(SHFLAGS) -o $@ $(LIB_OBJS) $(LDFLAGS)
47 ln -sf $(LIBTARGET) $(LIBNAME)
48 ln -sf $(LIBTARGET) $(LIBSONAME)
51 $(CC) -MM $(CFLAGS) $^ 1>.depend
57 rm -f $(OBJS) $(TARGET) $(LIBNAME) $(LIBTARGET)
60 install -d "$(DESTDIR)$(bindir)"
61 install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
62 install -m 755 $(LIBTARGET) $(DESTDIR)$(libdir)
63 ln -sf $(LIBTARGET) $(DESTDIR)$(libdir)/$(LIBSONAME)
64 ln -sf $(LIBTARGET) $(DESTDIR)$(libdir)/$(LIBNAME)
65 mkdir -p "$(DESTDIR)$(prefix)/include/mlt/miracle"
66 install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/miracle"
69 rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
70 rm -f "$(DESTDIR)$(libdir)/$(LIBTARGET)"
71 rm -f "$(DESTDIR)$(libdir)/$(LIBSONAME)"
72 rm -f "$(DESTDIR)$(libdir)/$(LIBNAME)"
73 rm -rf "$(DESTDIR)$(prefix)/include/mlt/miracle"
75 ifneq ($(wildcard .depend),)