diff options
author | Måns Rullgård <mans@mansr.com> | 2009-07-12 13:29:32 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-07-12 13:29:32 +0000 |
commit | 50a334e4261bd632b058433aff11f341638307d4 (patch) | |
tree | ae59e91e1e797fb71e8b10609755eed01fb12ed6 /common.mak | |
parent | 95a61cfc248c3745fe3b48c6f49ce04311a77e16 (diff) | |
download | ffmpeg-50a334e4261bd632b058433aff11f341638307d4.tar.gz |
Separate C preprocessor flags into CPPFLAGS variable
Originally committed as revision 19404 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common.mak b/common.mak index 629e7829ea..eeeb6f54f8 100644 --- a/common.mak +++ b/common.mak @@ -18,16 +18,17 @@ endif ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale -CFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS) +CPPFLAGS += -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) +CFLAGS := $(OPTFLAGS) %.o: %.c - $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $< %.o: %.S - $(AS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $< + $(AS) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $< %.ho: %.h - $(CC) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $< + $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $< %.d: %.c $(DEPEND_CMD) > $@ |