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