VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/vhook/Makefile@ 9548

Last change on this file since 9548 was 5776, checked in by vboxsync, 17 years ago

ffmpeg: exported to OSE

File size: 1.2 KB
Line 
1include ../config.mak
2
3VPATH=$(SRC_PATH)/vhook
4
5CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat \
6 -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
7
8#FIXME: This needs to be in configure/config.mak
9ifeq ($(CONFIG_DARWIN),yes)
10 SHFLAGS = -dynamiclib -Wl,-single_module -flat_namespace \
11 -undefined suppress -Wl,-install_name,$(libdir)/vhook/$@
12endif
13HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
14
15ifeq ($(HAVE_IMLIB2),yes)
16 HOOKS += imlib2$(SLIBSUF)
17 LDFLAGS += -lImlib2
18endif
19
20ifeq ($(HAVE_FREETYPE2),yes)
21 HOOKS += drawtext$(SLIBSUF)
22 CFLAGS += `freetype-config --cflags`
23 LDFLAGS += `freetype-config --libs`
24endif
25
26all: $(HOOKS)
27
28SRCS := $(HOOKS:$(SLIBSUF)=.c)
29
30depend: $(SRCS)
31 $(CC) -MM $(CFLAGS) $^ 1>.depend
32
33install: $(HOOKS)
34 install -d "$(libdir)/vhook"
35 install -m 755 $(HOOKS) "$(libdir)/vhook"
36
37ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
38uninstall:
39 rm -f $(addprefix $(libdir)/vhook/,$(ALLHOOKS))
40 -rmdir "$(libdir)/vhook/"
41
42%$(SLIBSUF): %.o
43 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
44
45clean:
46 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
47
48distclean: clean
49 rm -f .depend
50
51ifneq ($(wildcard .depend),)
52include .depend
53endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette