Merge ../mlt
[melted] / src / inigo / Makefile
1 include ../../config.mak
2
3 TARGET = inigo
4
5 OBJS = inigo.o \
6 io.o
7
8 CFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\"
9
10 LDFLAGS += -L../framework -lmlt -lpthread
11
12 SRCS := $(OBJS:.o=.c)
13
14 all: $(TARGET)
15
16 $(TARGET): $(OBJS)
17 $(CC) -o $@ $(OBJS) $(LDFLAGS)
18
19 depend: $(SRCS)
20 $(CC) -MM $(CFLAGS) $^ 1>.depend
21
22 distclean: clean
23 rm -f .depend
24
25 clean:
26 rm -f $(OBJS) $(TARGET)
27
28 install: all
29 install -d "$(DESTDIR)$(bindir)"
30 install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
31
32 uninstall:
33 rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
34
35 ifneq ($(wildcard .depend),)
36 include .depend
37 endif