forked from len0rd/rockbox
when building on MinGW, make sure to set CC to gcc. Make ar call silent.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15935 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c21f59090e
commit
84644c3b93
1 changed files with 5 additions and 1 deletions
|
|
@ -22,6 +22,10 @@ CFLAGS = $(SPEEXOPTS) $(INCLUDES) -O3 -fomit-frame-pointer -Wno-unused-parameter
|
||||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||||
CFLAGS+=-mno-cygwin
|
CFLAGS+=-mno-cygwin
|
||||||
endif
|
endif
|
||||||
|
# on mingw32, make sure CC is set to gcc
|
||||||
|
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
|
||||||
|
CC = gcc
|
||||||
|
endif
|
||||||
|
|
||||||
# This sets up 'SRC' based on the files mentioned in SOURCES
|
# This sets up 'SRC' based on the files mentioned in SOURCES
|
||||||
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
|
SRC := $(shell cat $(SPEEXSRC)/SOURCES | $(CC) $(CFLAGS) -E -P - | grep -v "^\#")
|
||||||
|
|
@ -51,7 +55,7 @@ $(DEPFILE): $(SOURCES)
|
||||||
|
|
||||||
librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o
|
librbspeex.a: $(OBJS) $(DEPFILE) rbspeex.o
|
||||||
@echo AR librbspeex.a
|
@echo AR librbspeex.a
|
||||||
$(AR) ruv $@ $+ > /dev/null 2>&1
|
$(SILENT)$(AR) ruv $@ $+ > /dev/null 2>&1
|
||||||
|
|
||||||
../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a
|
../rbspeexenc: $(OBJS) rbspeexenc.o librbspeex.a
|
||||||
@echo Linking ../rbspeexenc
|
@echo Linking ../rbspeexenc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue