Statistics
| Branch: | Revision:

ffmpeg / vhook / Makefile @ 3a74415d

History | View | Annotate | Download (1.2 KB)

1
include ../config.mak
2

    
3
VPATH=$(SRC_PATH_BARE)/vhook
4

    
5
CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
6
       -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
7
LDFLAGS+= -g
8

    
9
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
10
ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
11

    
12
ifeq ($(HAVE_IMLIB2),yes)
13
    HOOKS += imlib2$(SLIBSUF)
14
    CFLAGS += `imlib2-config --cflags`
15
    LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
16
endif
17

    
18
ifeq ($(HAVE_FREETYPE2),yes)
19
    HOOKS += drawtext$(SLIBSUF)
20
    CFLAGS += `freetype-config --cflags`
21
    LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
22
endif
23

    
24
SRCS := $(HOOKS:$(SLIBSUF)=.c)
25

    
26
all: $(HOOKS)
27

    
28
depend dep: $(SRCS)
29
	$(CC) -MM $(CFLAGS) $^ 1>.depend
30

    
31
install: $(HOOKS)
32
	install -d "$(shlibdir)/vhook"
33
	install -m 755 $(HOOKS) "$(shlibdir)/vhook"
34

    
35
uninstall:
36
	rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
37
	-rmdir "$(shlibdir)/vhook/"
38

    
39
%$(SLIBSUF): %.o
40
	$(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
41

    
42
clean:
43
	rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
44

    
45
distclean: clean
46
	rm -f .depend
47

    
48
.PHONY: all depend dep clean distclean install* uninstall*
49

    
50
-include .depend