Move all internal -I parameters to the front of CFLAGS to avoid using external
authorDiego Biurrun <diego@biurrun.de>
Thu, 17 Aug 2006 16:32:08 +0000 (16:32 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 17 Aug 2006 16:32:08 +0000 (16:32 +0000)
header files that happen to have the same name as internal ones.

Originally committed as revision 6016 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/Makefile
libavformat/Makefile
libavutil/Makefile
libpostproc/Makefile
vhook/Makefile

index 80f2201c1449516870509ea196bd5458a14f5196..89f4c402c266214394ece7c5fdbe8d8525449698 100644 (file)
@@ -5,7 +5,7 @@
 include ../config.mak
 
 # NOTE: -I.. is needed to include config.h
-CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil \
+CFLAGS=-DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
        -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE $(AMR_CFLAGS)
 
 OBJS= bitstream.o utils.o allcodecs.o \
index 294c209cfe15727ace5048c8f1e35b17e71f7a6e..eecbcb25bf03a10e19974826602523953cf3e103 100644 (file)
@@ -4,8 +4,8 @@
 #
 include ../config.mak
 
-CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
-       -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 \
+CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
+       $(OPTFLAGS) -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 \
        -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 
 OBJS= utils.o cutils.o os_support.o allformats.o
index 55d1f2b330fef0d53f862f7745cd1fd535088595..5b78adc53bd0a9e50863b7ee45f18f1dab5b1336 100644 (file)
@@ -4,7 +4,7 @@
 include ../config.mak
 
 # NOTE: -I.. is needed to include config.h
-CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. \
+CFLAGS=-DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. $(OPTFLAGS) \
        -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 
 OBJS= mathematics.o \
index b6ac1a6f91f9cb1477fcbab7bf65cc84e43247c8..c7bbdc14346f30bab4121cd5c460095c49ca09b3 100644 (file)
@@ -15,7 +15,7 @@ SHARED_OBJS=postprocess_pic.o
 
 HEADERS = postprocess.h
 
-CFLAGS  = $(OPTFLAGS) -I.. -I$(SRC_PATH)/libavcodec
+CFLAGS  = -I.. -I$(SRC_PATH)/libavcodec $(OPTFLAGS)
 # -I/usr/X11R6/include/
 
 include $(SRC_PATH)/common.mak
index 13353551b4fd62e4dcfec5a5ec6aa7dc679c681d..638f15a1707457b3c568f1b5805ccc2fbd6ca46b 100644 (file)
@@ -2,8 +2,8 @@ include ../config.mak
 
 VPATH=$(SRC_PATH)/vhook
 
-CFLAGS=$(VHOOKCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat \
-       -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
+CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
+       -I$(SRC_PATH)/libavformat $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
 
 HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
 ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)