1 include ..
/..
/config.mak
5 ifneq ($(targetos
), Darwin
)
6 LIBNAME
= libmiracle
$(LIBSUF
)
7 LIBTARGET
= $(LIBNAME
).
$(version
)
8 SHFLAGS
+= -Wl
,-soname
,$(LIBTARGET
)
10 LIBNAME
= libmiracle
$(LIBSUF
)
11 LIBTARGET
= libmiracle.
$(version
)$(LIBSUF
)
12 SHFLAGS
+= -install_name
$(libdir)/$(LIBTARGET
)
17 LIB_OBJS
= miracle_log.o \
19 miracle_connection.o \
23 miracle_unit_commands.o
25 INCS
= miracle_server.h \
29 OBJS
= $(APP_OBJS
) $(LIB_OBJS
)
31 CFLAGS
+= -I..
$(RDYNAMIC
)
33 LDFLAGS
+= -L..
/valerie
-lvalerie
-L..
/framework
-lmlt
39 $(TARGET
): $(APP_OBJS
) $(LIBTARGET
)
40 $(CC
) -o
$@
$(APP_OBJS
) -L.
-lmiracle
$(LDFLAGS
)
42 $(LIBTARGET
): $(LIB_OBJS
)
43 $(CC
) $(SHFLAGS
) -o
$@
$(LIB_OBJS
) $(LDFLAGS
)
44 ln
-sf
$(LIBTARGET
) $(LIBNAME
)
47 $(CC
) -MM
$(CFLAGS
) $^
1>.depend
53 rm -f
$(OBJS
) $(TARGET
) $(LIBNAME
) $(LIBTARGET
)
56 install -d
"$(DESTDIR)$(bindir)"
57 install -c
-s
-m
755 $(TARGET
) "$(DESTDIR)$(bindir)"
58 install -m
755 $(LIBTARGET
) $(DESTDIR
)$(libdir)
59 ln
-sf
$(LIBTARGET
) $(DESTDIR
)$(libdir)/$(LIBNAME
)
60 mkdir
-p
"$(DESTDIR)$(prefix)/include/mlt/miracle"
61 install -m
644 $(INCS
) "$(DESTDIR)$(prefix)/include/mlt/miracle"
63 ifneq ($(wildcard .depend
),)