You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mlt/src/valerie/Makefile

67 lines
1.4 KiB

include ../../config.mak
ifneq ($(targetos), Darwin)
NAME = libvalerie$(LIBSUF)
TARGET = $(NAME).$(version)
SHFLAGS += -Wl,-soname,$(TARGET)
else
NAME = libvalerie$(LIBSUF)
TARGET = libvalerie.$(version)$(LIBSUF)
SHFLAGS += -install_name $(libdir)/$(TARGET)
endif
OBJS = valerie.o \
valerie_notifier.o \
valerie_parser.o \
valerie_response.o \
valerie_status.o \
valerie_tokeniser.o \
valerie_util.o \
valerie_remote.o \
valerie_socket.o
INCS = valerie.h \
valerie_notifier.h \
valerie_parser.h \
valerie_remote.h \
valerie_response.h \
valerie_socket.h \
valerie_status.h \
valerie_tokeniser.h \
valerie_util.h
SRCS := $(OBJS:.o=.c)
CFLAGS += -I.. $(RDYNAMIC)
LDFLAGS += -L../framework -lmlt -lpthread
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
ln -sf $(TARGET) $(NAME)
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
distclean: clean
rm -f .depend
clean:
rm -f $(OBJS) $(TARGET) $(NAME)
install: all
install -m 755 $(TARGET) $(DESTDIR)$(libdir)
ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
mkdir -p "$(DESTDIR)$(prefix)/include/mlt/valerie"
install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/valerie"
uninstall:
rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
rm -f "$(DESTDIR)$(libdir)/$(NAME)"
rm -rf "$(DESTDIR)$(prefix)/include/mlt/valerie"
ifneq ($(wildcard .depend),)
include .depend
endif