]> rtime.felk.cvut.cz Git - frescor/demo.git/blob - build/Makefile.omk.ffmpeg
Export ffmpeg's config.h under a different name
[frescor/demo.git] / build / Makefile.omk.ffmpeg
1 # -*- makefile-gmake -*-
2
3 lib_LIBRARIES:=$(NAME)
4 $(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
5 renamed_include_HEADERS = $(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
6 INCLUDES += -I $(dir $(srcdir:%/=%)) # this should point to ffmpeg sources
7
8 ifeq ($(FFMPEG_SUBDIR),ffmpeg)
9 SUBDIRS = tools libavcodec libavdevice libavfilter libavformat  \
10           libavutil libpostproc libswscale
11 renamed_include_HEADERS=
12
13 renamed_include_GEN_HEADERS=config.h->ffmpeg-config.h
14
15 bin_PROGRAMS = ffmpeg #pktdumper
16 pktdumper_SOURCES = tools/pktdumper.c
17 pktdumper_LIBS = avformat
18
19 ffmpeg_SOURCES = ffmpeg.c cmdutils.c
20 lib_LOADLIBES = $(ALLFFLIBS) $(FFEXTRALIBS:-l%=%)
21 ifeq ($(CONFIG_FFMPEG_WITH_FRSH),y)
22 lib_LOADLIBES+= pthread rt fwp fna frsh
23 endif
24 endif
25
26 ifeq ($(FFMPEG_SUBDIR),libavcodec)
27 SUBDIRS=x86
28 HEADERS += audioconvert.h
29 endif
30
31 ifeq ($(FFMPEG_SUBDIR),libavutil)
32 renamed_include_HEADERS += internal.h->libavutil/internal.h
33 renamed_include_HEADERS += timer.h->libavutil/timer.h
34 renamed_include_HEADERS += x86/timer.h->libavutil/x86/timer.h
35 endif
36
37 ifeq ($(FFMPEG_SUBDIR),libavformat)
38 HEADERS += os_support.h network.h
39 default_CONFIG += CONFIG_FFMPEG_WITH_FRSH=x
40 LOCAL_CONFIG_H = libavformat_config.h
41 endif