diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-02-18 13:47:17 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-18 13:47:17 +0000 |
| commit | cdde25b597eb4047e9db27bb8bbcf938e4a43cfe (patch) | |
| tree | d25f47817cc8515228c8ea0eb33ab71bfc2159d4 /apps/codecs | |
| parent | f436476f9f0eeae4640197866ea5b5fa068df7e9 (diff) | |
| download | rockbox-cdde25b597eb4047e9db27bb8bbcf938e4a43cfe.zip rockbox-cdde25b597eb4047e9db27bb8bbcf938e4a43cfe.tar.gz rockbox-cdde25b597eb4047e9db27bb8bbcf938e4a43cfe.tar.bz2 rockbox-cdde25b597eb4047e9db27bb8bbcf938e4a43cfe.tar.xz | |
Unified build system to use SOURCES for sim builds too, a single Makefile-look
made by configure and various related adjustments. This has not yet been tested
on cygwin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6001 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
| -rw-r--r-- | apps/codecs/libFLAC/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/codecs/libFLAC/Makefile b/apps/codecs/libFLAC/Makefile index 329de9c..ee4feab 100644 --- a/apps/codecs/libFLAC/Makefile +++ b/apps/codecs/libFLAC/Makefile @@ -14,11 +14,22 @@ ifdef APPEXTRA INCLUDES += -I$(APPSDIR)/$(APPEXTRA) endif -FLACOPTS = -DFLAC__NO_ASM -DFLAC__ALIGN_MALLOC_DATA -DFLAC__INTEGER_ONLY_LIBRARY -DVERSION=\"1.1.2\" -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ --param large-function-insns=10000 +NEWGCC=$(shell expr $(GCCNUM) ">" 303) + +FLACOPTS = -DFLAC__NO_ASM -DFLAC__ALIGN_MALLOC_DATA \ +-DFLAC__INTEGER_ONLY_LIBRARY -DVERSION=\"1.1.2\" -fomit-frame-pointer \ +-funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ + +ifeq ($(NEWGCC), 1) + # this is 3.4.X options: + FLACOPTS += --param large-function-insns=10000 +endif + CFLAGS = $(GCCOPTS) $(FLACOPTS)\ $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) +SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ +$(TARGET) $(DEFINES) -E -P -include "config.h" - ) SOURCES = $(SRC) OBJS := $(SRC:%.c=$(OBJDIR)/libFLAC/%.o) DEPFILE = $(OBJDIR)/dep-libFLAC |