1 include ..
/..
/config.mak
5 ifneq ($(targetos
), Darwin
)
6 LIBNAME
= libmelted
$(LIBSUF
)
7 LIBTARGET
= $(LIBNAME
).
$(version
)
8 LIBSONAME
= $(LIBNAME
).
$(soversion
)
9 SHFLAGS
+= -Wl
,-soname
,$(LIBSONAME
)
11 LIBNAME
= libmelted
$(LIBSUF
)
12 LIBTARGET
= libmelted.
$(version
)$(LIBSUF
)
13 LIBSONAME
= libmelted.
$(soversion
)$(LIBSUF
)
14 SHFLAGS
+= -install_name
$(libdir)/$(LIBSONAME
) -current_version
$(version
) -compatibility_version
$(soversion
)
19 LIB_OBJS
= melted_log.o \
25 melted_unit_commands.o
27 INCS
= melted_server.h \
31 OBJS
= $(APP_OBJS
) $(LIB_OBJS
)
33 CFLAGS
+= -I..
$(RDYNAMIC
)
35 LDFLAGS
+= -L..
/mvcp
-lmvcp
42 $(TARGET
): $(APP_OBJS
) $(LIBTARGET
)
43 $(CC
) -o
$@
$(APP_OBJS
) -L.
-lmelted
$(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/melted"
66 install -m
644 $(INCS
) "$(DESTDIR)$(prefix)/include/mlt/melted"
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/melted"
75 ifneq ($(wildcard .depend
),)