mirror of https://github.com/mpv-player/mpv
Add libav include paths to CFLAGS without indirection.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21406 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7b78a6cc4e
commit
b125a9e129
8
Makefile
8
Makefile
|
@ -6,11 +6,11 @@
|
|||
|
||||
include config.mak
|
||||
|
||||
LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I./libavutil
|
||||
LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I./libavcodec
|
||||
LIBAV_INC += $(LIBAV_INC-yes)
|
||||
CFLAGS = $(OPTFLAGS) -I.
|
||||
|
||||
CFLAGS = $(OPTFLAGS) -I. $(LIBAV_INC)
|
||||
CFLAGS-$(CONFIG_LIBAVUTIL) += -I./libavutil
|
||||
CFLAGS-$(CONFIG_LIBAVCODEC) += -I./libavcodec
|
||||
CFLAGS += $(CFLAGS-yes)
|
||||
|
||||
#CFLAGS += -Wall
|
||||
|
||||
|
|
|
@ -32,10 +32,10 @@ SRCS=af.c \
|
|||
SRCS-$(CONFIG_LIBAVCODEC) += af_lavcresample.c
|
||||
SRCS-$(CONFIG_LIBAVCODEC_SO) += af_lavcresample.c
|
||||
|
||||
LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
||||
LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
||||
CFLAGS = -D_GNU_SOURCE
|
||||
|
||||
CFLAGS = $(LIBAV_INC) -D_GNU_SOURCE
|
||||
CFLAGS-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
||||
CFLAGS-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
||||
|
||||
ifeq ($(TARGET_OS),MINGW32)
|
||||
CFLAGS += -D_IO_H_
|
||||
|
|
|
@ -151,18 +151,17 @@ SRCS2-$(TWOLAME) += ae_twolame.c
|
|||
SRCS2-$(MP3LAME) += ae_lame.c
|
||||
|
||||
|
||||
LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
||||
LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
||||
|
||||
# -I.. to include ../liba52 before ../libavcodec/liba52.
|
||||
CFLAGS = -I.. \
|
||||
-Inative \
|
||||
-I../libmpdemux \
|
||||
-I../stream \
|
||||
-I../loader \
|
||||
$(LIBAV_INC) \
|
||||
-D_GNU_SOURCE \
|
||||
|
||||
CFLAGS-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
||||
CFLAGS-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
||||
|
||||
include ../mpcommon.mak
|
||||
|
||||
clean::
|
||||
|
|
|
@ -68,11 +68,11 @@ SRCS2 = muxer.c \
|
|||
SRCS2-$(CONFIG_LIBAVFORMAT) += muxer_lavf.c
|
||||
SRCS2-$(CONFIG_LIBAVFORMAT_SO) += muxer_lavf.c
|
||||
|
||||
LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
||||
LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
||||
LIBAV_INC-$(CONFIG_LIBAVFORMAT) += -I../libavformat
|
||||
CFLAGS = -I../stream -I../loader
|
||||
|
||||
CFLAGS = -I../stream -I../loader $(LIBAV_INC)
|
||||
CFLAGS-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
||||
CFLAGS-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
||||
CFLAGS-$(CONFIG_LIBAVFORMAT) += -I../libavformat
|
||||
|
||||
CPLUSPLUSFLAGS = $(CFLAGS) -D__STDC_LIMIT_MACROS
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SRCS += $(SRCS-yes)
|
||||
SRCS2 += $(SRCS2-yes)
|
||||
LIBAV_INC += $(LIBAV_INC-yes)
|
||||
CFLAGS += $(CFLAGS-yes)
|
||||
|
||||
OBJS = $(addsuffix .o, $(basename $(SRCS)) )
|
||||
OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) )
|
||||
|
|
Loading…
Reference in New Issue