aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-10-11 08:30:13 +0000
committerDiego Biurrun <diego@biurrun.de>2006-10-11 08:30:13 +0000
commitdadb850a50f75cc9149e394878c2341e73f58770 (patch)
tree20e807294ef8838212bbaf553739c5c6ca8366e4
parenta33fe57287e242e0e78b76c663f09c3afac3ccce (diff)
downloadffmpeg-dadb850a50f75cc9149e394878c2341e73f58770.tar.gz
Move CFLAGS handling to common.mak.
Originally committed as revision 6642 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--common.mak3
-rw-r--r--libavcodec/Makefile3
-rw-r--r--libavformat/Makefile4
-rw-r--r--libavutil/Makefile3
-rw-r--r--libpostproc/Makefile2
5 files changed, 6 insertions, 9 deletions
diff --git a/common.mak b/common.mak
index 78985d8b36..21b2273da4 100644
--- a/common.mak
+++ b/common.mak
@@ -5,6 +5,9 @@
SRC_DIR = $(SRC_PATH)/lib$(NAME)
VPATH = $(SRC_DIR)
+CFLAGS += -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
+ -D_ISOC9X_SOURCE -I$(BUILD_ROOT) -I$(SRC_PATH) \
+ -I$(SRC_PATH)/libavutil $(OPTFLAGS)
SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) $(CPPOBJS:.o=.cpp)
OBJS := $(OBJS) $(ASM_OBJS) $(CPPOBJS)
STATIC_OBJS := $(OBJS) $(STATIC_OBJS)
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index da5236ea99..3193e749d0 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -4,8 +4,7 @@
#
include ../config.mak
-CFLAGS=-DHAVE_AV_CONFIG_H -I$(BUILD_ROOT) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE $(AMR_CFLAGS)
+CFLAGS+=$(AMR_CFLAGS)
OBJS= bitstream.o \
utils.o \
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 00048892ee..4cebcf865d 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -4,9 +4,7 @@
#
include ../config.mak
-CFLAGS=-I$(BUILD_ROOT) -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
+CFLAGS+=-I$(SRC_PATH)/libavcodec
OBJS= utils.o cutils.o os_support.o allformats.o
diff --git a/libavutil/Makefile b/libavutil/Makefile
index b46c6271c0..2427a705cd 100644
--- a/libavutil/Makefile
+++ b/libavutil/Makefile
@@ -3,8 +3,7 @@
#
include ../config.mak
-CFLAGS=-DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I$(BUILD_ROOT) $(OPTFLAGS) \
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
+CFLAGS+=-DBUILD_AVUTIL
OBJS= mathematics.o \
rational.o \
diff --git a/libpostproc/Makefile b/libpostproc/Makefile
index f7619c31fe..6f95049a3b 100644
--- a/libpostproc/Makefile
+++ b/libpostproc/Makefile
@@ -15,8 +15,6 @@ SHARED_OBJS=postprocess_pic.o
HEADERS = postprocess.h
-CFLAGS = -I$(BUILD_ROOT) -I$(SRC_PATH)/libavutil $(OPTFLAGS)
-
include $(SRC_PATH)/common.mak
depend: postprocess.c