]> git.sesse.net Git - mlt/blob - src/miracle/Makefile
albino
[mlt] / src / miracle / Makefile
1 TARGET = miracle
2
3 APP_OBJS = miracle.o
4
5 LIB_OBJS = miracle_log.o \
6            miracle_server.o \
7            miracle_connection.o \
8            miracle_local.o \
9            miracle_unit.o \
10            miracle_commands.o \
11            miracle_unit_commands.o
12
13 OBJS = $(APP_OBJS) $(LIB_OBJS)
14
15 CFLAGS = -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
16
17 LDFLAGS = -L ../valerie -lvalerie -L ../framework -lmlt
18
19 SRCS := $(OBJS:.o=.c)
20
21 all:            $(TARGET)
22
23 $(TARGET):      $(APP_OBJS) libmiracle.so
24                         $(CC) -o $@ $(APP_OBJS) -L. -lmiracle $(LDFLAGS)
25
26 libmiracle.so:  $(LIB_OBJS)
27                         $(CC) -shared -o $@ $(LIB_OBJS) $(LDFLAGS)
28
29 depend:         $(SRCS)
30                         $(CC) -MM $(CFLAGS) $^ 1>.depend
31
32 dist-clean:     clean
33                         rm -f .depend
34
35 clean:  
36                         rm -f $(OBJS) $(TARGET) libmiracle.so
37
38 ifneq ($(wildcard .depend),)
39 include .depend
40 endif