blob: 5e9023a6ef2d7146debffc2879e0300d61472d6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
include ../config.mak
VPATH=$(SRC_PATH)/vhook
CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
ifeq ($(CONFIG_DARWIN),yes)
SHFLAGS+=-bundle -flat_namespace -undefined suppress
endif
HOOKS=null.so fish.so
ifeq ($(HAVE_IMLIB2),yes)
HOOKS += imlib2.so
endif
all: $(HOOKS)
DEPS= $(HOOKS:.so=.d)
install:
install -s -m 755 $(HOOKS) $(INSTDIR)
imlib2.so: imlib2.o
$(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
%.so: %.o
$(CC) -g -o $@ $(SHFLAGS) $<
%.d: %.c
@echo $@ \\ > $@
$(CC) $(CFLAGS) -MM $< >> $@
-include $(DEPS)
%.html: %.texi
texi2html -monolithic -number $<
clean:
rm -f *.o *.d *.so *~
|