Commit 2ea394ab authored by thomasl's avatar thomasl

Simplify and make better cojerency of gcc general options

remain issues: -m32 set in only some placed (not changed) -std=gnu99 is also partially set (can't compile if set everywhere)



git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6197 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 93e2dd4c
export KERNEL_DIR=/lib/modules/$(shell uname -r)/
CC=gcc
CCC=gcc
linux = $(shell if [ `uname` = "Linux" ] ; then echo "1" ; else echo "0" ; fi)
#CFLAGS += -std=gnu99
CFLAGS += -Wall -g -ggdb -Wstrict-prototypes -fno-strict-aliasing
#For performance
CFLAGS += -O3 -funroll-loops
CFLAGS += -Wno-packed-bitfield-compat
# This is the minimum CPU faetures for OAI
CFLAGS += -mmmx -msse -msse2 -mssse3 -msse4.1
# Add CPU features from local CPU
CFLAGS += -march=native
ifeq ($(OSTYPE),Cygwin)
cygwin=1
CFLAGS += -DCYGWIN
else
cygwin=0
endif
ifeq ($(linux),1)
CFLAGS +=
LDFLAGS += -rdynamic
endif
ITTI_DIR = $(COMMON_UTILS_DIR)/itti
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment