make install part 1
[melted] / src / modules / inigo / Makefile
1 include ../../../config.mak
2
3 TARGET = ../libmltinigo.so
4
5 OBJS = factory.o \
6 producer_inigo.o
7
8 CFLAGS = -O3 -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
9
10 SRCS := $(OBJS:.o=.c)
11
12 all: $(TARGET)
13
14 $(TARGET): $(OBJS)
15 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
16
17 depend: $(SRCS)
18 $(CC) -MM $(CFLAGS) $^ 1>.depend
19
20 dist-clean: clean
21 rm -f .depend
22
23 clean:
24 rm -f $(OBJS) $(TARGET)
25
26 install: all
27 install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
28
29 ifneq ($(wildcard .depend),)
30 include .depend
31 endif