Statistics
| Branch: | Revision:

ffmpeg / vhook / Makefile @ 811e6d73

History | View | Annotate | Download (665 Bytes)

1
include ../config.mak
2

    
3
VPATH=$(SRC_PATH)/vhook
4

    
5
CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
6

    
7
ifeq ($(CONFIG_DARWIN),yes)
8
SHFLAGS+=-bundle -flat_namespace -undefined suppress
9
endif
10
HOOKS=null.so fish.so
11

    
12
ifeq ($(HAVE_IMLIB2),yes)
13
    HOOKS += imlib2.so
14
endif    
15

    
16
all: $(HOOKS) 
17

    
18
SRCS := $(OBJS:.o=.c)
19

    
20
.depend: $(SRCS)
21
	$(CC) -MM $(CFLAGS) $^ 1>.depend
22

    
23
install:
24
	install -s -m 755 $(HOOKS) $(INSTDIR)
25

    
26
imlib2.so: imlib2.o
27
	$(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
28

    
29
%.so: %.o
30
	$(CC) -g -o $@ $(SHFLAGS) $<
31

    
32
clean:
33
	rm -f *.o *.d *.so *~
34

    
35
ifneq ($(wildcard .depend),)
36
include .depend
37
endif