]> git.sesse.net Git - mlt/blob - src/valerie/Makefile
7322577fb736a8f05707808c83037331b8424a80
[mlt] / src / valerie / Makefile
1
2 TARGET = libvalerie.so
3
4 OBJS = valerie.o \
5            valerie_notifier.o \
6            valerie_parser.o \
7            valerie_response.o \
8            valerie_status.o \
9            valerie_tokeniser.o \
10            valerie_util.o \
11            valerie_remote.o \
12            valerie_socket.o
13
14 SRCS := $(OBJS:.o=.c)
15
16 CFLAGS=-O3 -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
17
18 LDFLAGS=-ldv -lpthread
19
20 ifeq ($(MLT_GPROF),true)
21 CFLAGS+=-p
22 LDFLAGS+=-p
23 endif
24
25 all: $(TARGET)
26
27 $(TARGET): $(OBJS)
28                 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
29
30 depend: $(SRCS)
31                 $(CC) -MM $(CFLAGS) $^ 1>.depend
32
33 dist-clean:     clean
34                 rm -f .depend
35
36 clean:  
37                 rm -f $(OBJS) $(TARGET)
38
39 ifneq ($(wildcard .depend),)
40 include .depend
41 endif