]> git.sesse.net Git - mlt/blob - src/inigo/Makefile
46f21f8b6a1fe4b785c986940c013c1515bc8b38
[mlt] / src / inigo / Makefile
1 include ../../config.mak
2
3 TARGET = inigo
4
5 OBJS = inigo.o \
6            io.o
7
8 CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
9
10 LDFLAGS = -L ../framework -lmlt 
11
12 ifeq ($(MLT_GPROF),true)
13 CFLAGS+=-p
14 LDFLAGS+=-p
15 endif
16
17 SRCS := $(OBJS:.o=.c)
18
19 all: $(TARGET)
20
21 $(TARGET): $(OBJS)
22                 $(CC) -o $@ $(OBJS) $(LDFLAGS)
23
24 depend: $(SRCS)
25                 $(CC) -MM $(CFLAGS) $^ 1>.depend
26
27 dist-clean:     clean
28                 rm -f .depend
29
30 clean:  
31                 rm -f $(OBJS) $(TARGET)
32
33 install:        all
34         install -d "$(bindir)"
35         install -c -s -m 755 $(TARGET) "$(bindir)"
36
37 ifneq ($(wildcard .depend),)
38 include .depend
39 endif