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