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