d7417434a22db3408a8e900bae31e462453d32bb
[melted] / src / valerie / Makefile
1 include ../../config.mak
2
3 NAME = libvalerie$(LIBSUF)
4 TARGET = libvalerie$(LIBSUF).$(version)
5
6 OBJS = valerie.o \
7 valerie_notifier.o \
8 valerie_parser.o \
9 valerie_response.o \
10 valerie_status.o \
11 valerie_tokeniser.o \
12 valerie_util.o \
13 valerie_remote.o \
14 valerie_socket.o
15
16 INCS = valerie.h \
17 valerie_notifier.h \
18 valerie_parser.h \
19 valerie_remote.h \
20 valerie_response.h \
21 valerie_socket.h \
22 valerie_status.h \
23 valerie_tokeniser.h \
24 valerie_util.h
25
26 SRCS := $(OBJS:.o=.c)
27
28 CFLAGS += -I.. $(RDYNAMIC)
29 LDFLAGS += -Wl,-soname,$(TARGET) -L../framework -lmlt -lpthread
30
31 all: $(TARGET)
32
33 $(TARGET): $(OBJS)
34 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
35 ln -sf $(TARGET) $(NAME)
36
37 depend: $(SRCS)
38 $(CC) -MM $(CFLAGS) $^ 1>.depend
39
40 distclean: clean
41 rm -f .depend
42
43 clean:
44 rm -f $(OBJS) $(TARGET) $(NAME)
45
46 install: all
47 install -m 755 $(TARGET) $(DESTDIR)$(libdir)
48 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
49 mkdir -p "$(DESTDIR)$(prefix)/include/mlt/valerie"
50 install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/valerie"
51
52 ifneq ($(wildcard .depend),)
53 include .depend
54 endif