# HG changeset patch # User diego # Date 1164935502 0 # Node ID fd1495e1538dd05728229a63b8f2cf50d2eb87e6 # Parent deac3aacf67ecfe079b0d10a02e1f102dff09a5d Add libav include paths to CFLAGS without indirection. diff -r deac3aacf67e -r fd1495e1538d Makefile --- a/Makefile Thu Nov 30 21:59:55 2006 +0000 +++ b/Makefile Fri Dec 01 01:11:42 2006 +0000 @@ -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 diff -r deac3aacf67e -r fd1495e1538d libaf/Makefile --- a/libaf/Makefile Thu Nov 30 21:59:55 2006 +0000 +++ b/libaf/Makefile Fri Dec 01 01:11:42 2006 +0000 @@ -32,10 +32,10 @@ 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_ diff -r deac3aacf67e -r fd1495e1538d libmpcodecs/Makefile --- a/libmpcodecs/Makefile Thu Nov 30 21:59:55 2006 +0000 +++ b/libmpcodecs/Makefile Fri Dec 01 01:11:42 2006 +0000 @@ -151,18 +151,17 @@ 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:: diff -r deac3aacf67e -r fd1495e1538d libmpdemux/Makefile --- a/libmpdemux/Makefile Thu Nov 30 21:59:55 2006 +0000 +++ b/libmpdemux/Makefile Fri Dec 01 01:11:42 2006 +0000 @@ -68,11 +68,11 @@ 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 diff -r deac3aacf67e -r fd1495e1538d mpcommon.mak --- a/mpcommon.mak Thu Nov 30 21:59:55 2006 +0000 +++ b/mpcommon.mak Fri Dec 01 01:11:42 2006 +0000 @@ -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)) )